Skip to content

Instantly share code, notes, and snippets.

@aldibier
Last active December 22, 2015 10:19
Show Gist options
  • Save aldibier/6458189 to your computer and use it in GitHub Desktop.
Save aldibier/6458189 to your computer and use it in GitHub Desktop.
=== Generate SSH Keys ===
https://help.github.com/articles/generating-ssh-keys
=== Force git to overwrite local files on pull ===
git fetch --all
git reset --hard origin/master
git fetch downloads the latest from remote without trying to merge or rebase anything. Then the git reset resets the master branch to what you just fetched.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment