Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 995 Bytes

README.md

File metadata and controls

46 lines (38 loc) · 995 Bytes

Add repo

git clone ...

Check file changes (staged/unstaged) and number of commits ahead/behind upstream

git status

Download changes on all branches and apply upstream changes to this branch

git pull

Adding files to be committed (and variations) (-A for all changes)

git add <filename>
git add -A

Committing changes

git commit         // this launches vim where you can leave a message
git commit -m "message goes here"

Upload your commits... (you might have to set origin if it's the first commit on a branch - git gives you a guide)

git push

Change to a different branch 'feature/something_existing'

git checkout feature/something_existing

Create and change to new branch 'feature/something_new' and take current changes with you

git checkout -b feature/something_new

merge changes from another branch i.e. 'master', 'feature/something_new' etc. into current branch

git merge master