-
Notifications
You must be signed in to change notification settings - Fork 0
Github Cheat Sheet
Daniel Caldwell edited this page Jan 19, 2015
·
2 revisions
git reset --hard origin/master
Create a new local branch, make a change, commit it locally, then push that branch to github so I can create a pull request.
Checkout master
git checkout master
Pull master so it is up to date
git pull
Create new branch for new changes
git checkout -b <newbranchname>
Add changes
git add "whatever.txt"
git add "whatevere.se.txt"
git add "newfile.txt"
Commit changes locally
git commit -m "made some awesome changes"
Push branch to Github with updates incase there are more changes needed.
git push -u origin <newbranchname>