Skip to content

Instantly share code, notes, and snippets.

@breezhang
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breezhang/b66845470262c0c2c50f to your computer and use it in GitHub Desktop.
Save breezhang/b66845470262c0c2c50f to your computer and use it in GitHub Desktop.
use vagrant make linux box
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.\
git push -f // push & override
Note that this will blow away other people's code.
res:
http://stackoverflow.com/questions/1125968/force-git-to-overwrite-local-files-on-pull
http://stackoverflow.com/questions/1125968/force-git-to-overwrite-local-files-on-pull
https://www.atlassian.com/git/tutorials/setting-up-a-repository/git-init
vagrant is interface for all type of vm software (vmbox vm )
https://gorails.com/guides/using-vagrant-for-rails-development so basic sop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment