Skip to content

Instantly share code, notes, and snippets.

@ginos173
Last active March 20, 2016 07:50
Show Gist options
  • Save ginos173/f80fa83723368cde2b6b to your computer and use it in GitHub Desktop.
Save ginos173/f80fa83723368cde2b6b to your computer and use it in GitHub Desktop.
Git frecuente

###Recordar Pwd

git config credential.helper store

###Chancar locales

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. The --hard option changes all the files in your working tree to match the files in origin/master ###Ignorar cambios en archivos especificos

git update-index --assume-unchanged path/to/file
git update-index --no-assume-unchanged path/to/file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment