![]() ![]() ![]() ![]() Sometimes you may want to undo a whole commit with all changes. # Then to prove it (it won't print any diff) These commands will help you to revert to a specific commit git checkout master Please right-click on project in your eclipse->go to team-> check the git options I also have References in my git eclipse and the reference ofįETCH_HEAD is the one I'd like my master to revert to.If your NewBranch should point to remote master git pull origin NewBranch If I'm right follow this, if you master should point to remote master git pull origin master Now, I'd like the master to point to the same version as remote master.I am guessing you are asking these 2 questions? I also have References in my git eclipse and the reference of FETCH_HEAD is the one I'd like my master to revert to. I've tried to "Reset" the master, but after performing a hard reset, the Hash Ids b/w the local master and remote master still do not match. So that in the future I have a clean merge between my NewBranch and the Master Now, I'd like the master to point to the same version as remote master does. I was able to switch to NewBranch and merge it with all the latest changes (so my Newbranch is perfectly the way I want it). Furthermore I committed this change (locally) to my local master branch. Unintentionally, instead of updating NewBranch with the conflicted result, I have updated the local master with NewBranch (because master was the one that was currently checked out-or "active" in Eclipse). I was able to pull in all the changes that they made. Someone in my team updated master on the remote. Locally, I got the master and created another branch - NewBranch. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |