Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rodmcnew/48dab4bbf8bd7c4a4963 to your computer and use it in GitHub Desktop.
Save rodmcnew/48dab4bbf8bd7c4a4963 to your computer and use it in GitHub Desktop.
#There are many other ways to do this but i've found using these commands work best and are the least error prone
### How to pull down ###
git fetch origin master; git merge origin/master
#If there is an error here, fix it with:
#Open all conflict files, fix them, save them (you could use a diff tool here)
git add .; git commit -m "Merged change"
git fetch origin master; git merge origin/master
### How to push up ### (Always do the "pull down" steps before pushing up)
git add .; git commit -m "Updated files"; git push origin master
#If there is an error here, fix it with:
git fetch origin master; git merge origin/master
#If there are conflicts, open all conflict files, fix them, save them (you could use a diff tool here)
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment