If you are wondering how you can discard all your local changes easily, this post will show you how to do that in your git repository..

Now run this command, which will do the discarding job.
git
clean
origin
Change {MyBranch} to your working branch.
git
reset -
-hard
origin/{MyBranch}
If you are working on the SquashingBugs branch, your command will be_
Happy coding!
git
reset -
-hard
origin/
SquashingBugs
No comments:
Post a Comment