Wednesday, January 23, 2019

Git cheatsheet

You need to run the following four commands to work with Git: Ensure you are on the Master branch - to validate this, execute "git branch", the current branch will be indicated by a "*". To switch branch execute "git checkout master"
git checkout master
git pull origin master
git checkout -b STORY/  --this creates new branch
git checkout -t origin/STORY/   --this check's out existing branch you want to modify
git merge master
git pull origin STORY/
git add 
git commit -m " "
git push origin STORY/