Skip to main content

Posts

Showing posts from June, 2015

Override local changes with Git

For all SVN users like me, Git is great but a little bit more complex than all stuffs. Imagine, you want to get code from your remote repo and override your local changes (everything your commited on your local repo). This can be done in two step :
Reset your local repo with last fetched head : git reset --hard FETCH_HEADThen update local repo with remote one and merge changes : git pull Hope that could save your day!