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

ionic2 cordova build android - Unable resolve gradle 2.2.3

A quick tutorial for OWASP ZAP tool for beginners

OpenCover code coverage for .Net Core