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.
gitcleanorigin
Change {MyBranch} to your working branch.
gitreset --hardorigin/{MyBranch}
If you are working on the SquashingBugs branch, your command will be_
Happy coding!
gitreset --hardorigin/SquashingBugs
No comments:
Post a Comment