Git - Discard changes made to branch -


i started new branch, deleted there 1 many files. how reinstate master , delete changes in branch? command? or better delete branch , create new 1 instead keep working on branch before merge master?

would git merge master trick?

if want discard changes on branch, can :

git reset --hard master 

that reset branch same state as master, discarding changes.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -