Skip to content

Instantly share code, notes, and snippets.

@shams-ali
Last active July 1, 2016 22:22
Show Gist options
  • Save shams-ali/4702350695b19467b31f75f589168577 to your computer and use it in GitHub Desktop.
Save shams-ali/4702350695b19467b31f75f589168577 to your computer and use it in GitHub Desktop.
Github Commands
#overwrite current branch to master
git checkout seotweaks
git merge -s ours master
git checkout master
git merge seotweaks
#force pull from master and overwrite
git fetch origin
git reset --hard origin/master
#removed old files from git
git rm -r --cached .
git add .
git commit -am 'git cache cleared'
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment