# Git and github question

**URL:** <https://forum.freecodecamp.org/t/git-and-github-question/392614>\
**Category:** General\
**Created:** [May 22, 2020, 1:22pm UTC](https://forum.freecodecamp.org/t/git-and-github-question/392614 "2020-05-22T13:22:56Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![firdavsiQ](https://avatars.discourse-cdn.com/v4/letter/f/ac8455/32.png) [@firdavsiQ](https://forum.freecodecamp.org/u/firdavsiQ)\
**Post date:** [May 22, 2020, 1:22pm UTC](https://forum.freecodecamp.org/t/git-and-github-question/392614/1 "2020-05-22T13:22:56Z")

</div>

I was learning from bucky roberts git and github tutorial last night so in total there are 25 tuts but tutorial 18 ends with pushing to github repos using git bash.  
From here there are 2 options of learning github

1. the website
2. desktop GUI  
Which one should I learn and why? or both ?

---

<div class="post-metadata">

**Author:** ![Catalactics](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/catalactics/32/151364_2.png) [@Catalactics](https://forum.freecodecamp.org/u/Catalactics)\
**Post date:** [May 22, 2020, 1:28pm UTC](https://forum.freecodecamp.org/t/git-and-github-question/392614/2 "2020-05-22T13:28:00Z")

</div>

It really depends on how you want to use Git. For me, I used the website but that’s because I use Visual Studio Code as my code editor and it already has git built in. So I can Commit, Push, and Pull inside my code editor.

---

<div class="post-metadata">

**Author:** ![firdavsiQ](https://avatars.discourse-cdn.com/v4/letter/f/ac8455/32.png) [@firdavsiQ](https://forum.freecodecamp.org/u/firdavsiQ)\
**Post date:** [May 22, 2020, 1:32pm UTC](https://forum.freecodecamp.org/t/git-and-github-question/392614/3 "2020-05-22T13:32:43Z")

</div>

so you don’t have to use git bash? My machine is very old and the modern text editor that it supports is Sublime text do you think there is a package for that too?  
BTW do you use github from your text editor? I thought there are only 2 options  
1 the website  
2 the dessktop app provided by the github itself

---

<div class="post-metadata">

**Author:** ![Catalactics](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/catalactics/32/151364_2.png) [@Catalactics](https://forum.freecodecamp.org/u/Catalactics)\
**Post date:** [May 22, 2020, 1:40pm UTC](https://forum.freecodecamp.org/t/git-and-github-question/392614/4 "2020-05-22T13:40:43Z")

</div>

> [@firdavsiQ](#):
>
> so you don’t have to use git bash?

No, but you still have to install it on your PC.

> [@firdavsiQ](#):
>
> My machine is very old and the modern text editor that it supports is Sublime text

I don’t think VSCode needed that much. These are their recommended specs:

- 1.6 GHz or faster processor
- 1 GB of RAM  
more about it here: [Requirements for Visual Studio Code](https://code.visualstudio.com/docs/supporting/requirements).

> [@firdavsiQ](#):
>
> Sublime text do you think there is a package for that too?

If you still want to use Sublime, I checked and Sublime Text 3 already has Git Integrated in it.

> [@firdavsiQ](#):
>
> BTW do you use github from your text editor

No, I used the website [github.com](http://github.com), but I used GIT, which is the bash to push pull and commit. That’s integrated in my code editor VSCode.

- So Git is the back-end that does all the Commits, Push, and Pulls.
- GitHub is a hub for all the Gits people made. It’s like the multiplayer GUI version of Git.

---

<div class="post-metadata">

**Author:** ![firdavsiQ](https://avatars.discourse-cdn.com/v4/letter/f/ac8455/32.png) [@firdavsiQ](https://forum.freecodecamp.org/u/firdavsiQ)\
**Post date:** [May 22, 2020, 1:43pm UTC](https://forum.freecodecamp.org/t/git-and-github-question/392614/5 "2020-05-22T13:43:01Z")

</div>

so using

1. built in git from your text editor
2. the github website?

---

<div class="post-metadata">

**Author:** ![Catalactics](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/catalactics/32/151364_2.png) [@Catalactics](https://forum.freecodecamp.org/u/Catalactics)\
**Post date:** [May 22, 2020, 1:46pm UTC](https://forum.freecodecamp.org/t/git-and-github-question/392614/6 "2020-05-22T13:46:20Z")

</div>

Yes, So as you can see in the image, I have to initialized git in the folder first, then add a remote to the github repo I wanted. Then I can just commit, and push.

 ![image](https://global.discourse-cdn.com/freecodecamp/original/3X/6/5/65877b431794f90710283267b042ae29ec9ffa4b.png)  
Then I just go to Github and check my progress there:  
 ![image](https://global.discourse-cdn.com/freecodecamp/original/3X/6/9/699628d4ecadc4746caa1f72cc586d07ef69b1f1.png)

---

<div class="post-metadata">

**Author:** ![firdavsiQ](https://avatars.discourse-cdn.com/v4/letter/f/ac8455/32.png) [@firdavsiQ](https://forum.freecodecamp.org/u/firdavsiQ)\
**Post date:** [May 22, 2020, 1:50pm UTC](https://forum.freecodecamp.org/t/git-and-github-question/392614/7 "2020-05-22T13:50:11Z")

</div>

Why do you use "add origin " shouldn’t it be like the file name?  
or the nick name for your repo  
$ git remote add firstGithubRepo [https://github.com/FirdavsiA/myFirstGithubRepo.git](https://github.com/FirdavsiA/myFirstGithubRepo.git)

---

<div class="post-metadata">

**Author:** ![Catalactics](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/catalactics/32/151364_2.png) [@Catalactics](https://forum.freecodecamp.org/u/Catalactics)\
**Post date:** [May 22, 2020, 1:52pm UTC](https://forum.freecodecamp.org/t/git-and-github-question/392614/8 "2020-05-22T13:52:00Z")

</div>

Origin means the file you are currently in. So this code means:

```bash
git add remote origin your-github-link

```

- git add remote: Just means to add a new remote
- origin: the current file/directory I am in (It’s saying where the origin of the files are coming from)
- your-github-link: my github link that it will commit and push and pull through

---

<div class="post-metadata">

**Author:** ![firdavsiQ](https://avatars.discourse-cdn.com/v4/letter/f/ac8455/32.png) [@firdavsiQ](https://forum.freecodecamp.org/u/firdavsiQ)\
**Post date:** [May 22, 2020, 1:56pm UTC](https://forum.freecodecamp.org/t/git-and-github-question/392614/9 "2020-05-22T13:56:37Z")

</div>

when you push that way it only send files right? not the folder so when you create a repository on github it is just a fancy word for saying a ‘folder’

---

<div class="post-metadata">

**Author:** ![Catalactics](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/catalactics/32/151364_2.png) [@Catalactics](https://forum.freecodecamp.org/u/Catalactics)\
**Post date:** [May 22, 2020, 2:21pm UTC](https://forum.freecodecamp.org/t/git-and-github-question/392614/10 "2020-05-22T14:21:32Z")

</div>

Yes. So when I did the `git init` it created a hidden folder named `.git` for the git. Then when I say to push, It just means to push everything inside the folder I am in. So yeah, technically repository is just a big folder on the cloud, that you can fill in files and other folders.

---

<div class="post-metadata">

**Author:** ![lifeModder19135](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@lifeModder19135](https://forum.freecodecamp.org/u/lifeModder19135)\
**Post date:** [May 26, 2020, 5:26pm UTC](https://forum.freecodecamp.org/t/git-and-github-question/392614/11 "2020-05-26T17:26:19Z")

</div>

I will add this. If you are going into development as a career, I would recommend learning the git bash as well as git gui. You should spend extra time learning git inside and out as you will almost certainly use it when working as part of any dev team. Also, for any IDEs that you learn, figure out the git integration tools. As of 2020, git is one of the most used tools in software development.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 6:52pm UTC](https://forum.freecodecamp.org/t/git-and-github-question/392614/12 "2021-06-01T18:52:00Z")

</div>

Closed on June 1, 2021, 6:52pm UTC


