Git - reset all local changes and commit then sync with remote branch


If you ever need to discard local change and sync everything from the start



git reset --hard origin/develop (develop is your remote branch)

git pull origin develop  (just funny they omit the slash here


This is all you need. 


Comments

Popular posts from this blog

A quick tutorial for OWASP ZAP tool for beginners

ionic2 cordova build android - Unable resolve gradle 2.2.3