---
# System prepended metadata

title: 'Terminal, Git, and Github'
tags: [Git, ACC, Terminal, Tutorials, Lesson Notes]

---

###### tags: `Lesson Notes` `Git` `Terminal` `Tutorials` `ACC`
# Terminal, Git, and Github

## Terminal
#### What is it and why use it?

Simply put it how developers navigate the system and perform certain tasks.

#### Can I use CMD.exe or Powershell on my Windows PC?

No.  Many of the commands that we use as Developers will not work in either of those 2 programs.  Because of this we Windows users have to dowload the linux based Terminal called Git-Bash

#### I'm a Mac user do I need Git-Bash?
You are a lucky duck, you can use the default terminal, but if you want to feel free to download homebrew.  Many Mac users find this better.

#### What about this Git Dashboard?

While technically yes you can download that and use it, there are still a few commands that you might need to use that the dashboard is not built for.

### What do these terminal commands mean and what do they look like?
![](https://i.imgur.com/pTxhg7J.png)

![](https://i.imgur.com/dKsAuAf.png)

Ok cool that helps.  

## Git
#### What is git and why do we want to use it?
Simply put git is a version control system.  Ever make a change to a word document hit save and close it and then realize that you deleted important information?  If you closed out of the document it's gone.  Well thats where git comes in. As often as you want you will add your files to what is call a commit or a save point.  Once you add them you leave your self a message, something like "got this crazy function to finally work", you know something that when you look back at the commits you can tell oh yes that is what I changed or why I did that.  

Best part?  You can go back to those commits and revert your current files to a specific point, but thats for another day.

#### Is git and github the same thing?
Nope, not even close.  Github uses git, but so does Amazon Console, GitBucket, GitLab, and Bitbucket just to name a few.  The nice thing is all of them use the same git commands. 

#### Honestly why do I need to use git.  Will I ever need to see these save points?
You would be surprised how often you might just use them.  Fall behind on a lesson here in class?  Guess what, you can look at the file before class started and then what it looked like after while watching the recording and see those changes.  

### Ok then show me the commands, what do they look like and what do they do.

1st You will want to fork and get the clone link
![](https://i.imgur.com/17qwEnj.png)

2nd You will need to do the following in your terminal
![](https://i.imgur.com/XsWtbEE.png)

So now you have this repository on your computer.  Now you get to coding.  Done coding or ready to at least make a save point/


![](https://i.imgur.com/selDkIv.png)
![](https://i.imgur.com/BzWFfBD.png)

Let get this code up to github
![](https://i.imgur.com/LWpequU.png)

#### Ok so thats cool and all but how do I even make sure that when I go to save my work to github it goes to the right account?

Gotcha covered:
![](https://i.imgur.com/P23NViZ.png)

Trying to change your email and username and it still not letting you push things up to github?  Gotcha covered there too:

![](https://i.imgur.com/VLinlMF.png)
![](https://i.imgur.com/CRW86m1.png)

#### So now Your working on a team.  Here is some things to know

![](https://i.imgur.com/fkw4DPL.png)
