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
Post a Comment