Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 726 Bytes

File metadata and controls

65 lines (44 loc) · 726 Bytes

Clone a repo from Github

git clone <https://whatever-the-url-is.git>

Check what branch you are on

git clone <https://whatever-the-url-is.git>

Check out a new branch

git checkout -b <my-new-branch>

Navigate to an existing branch

git checkout <branch-that-exists-already>

Upload to Github

git push origin <branch-name>

Update a local branch

git pull

Stage a file

git add <file name>

Stage all files in the repo

git add .

Commit

git commit -m "My amazing commit"

Check what is on staging

git status

See your previous commits

git log