Skip to content
Daniel Caldwell edited this page Jan 19, 2015 · 2 revisions

Get rid off all my changes and just make what I have exactly what is on the server:

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>