Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 2
    Why you want it in so complicated? Why not just git reset --hard dev? Commented Jul 4, 2014 at 10:36
  • @AlexeyTen Because I don't know if Git reset --hard dev do what I want to do? What is it doing? Commented Jul 4, 2014 at 10:41
  • It will make current branch (say master) to be exact copy of dev. See git-scm.com/docs/git-reset Commented Jul 4, 2014 at 10:45
  • @AlexeyTen So to use it, I should be in master branch and give that command to hard reset my branch to dev Commented Jul 4, 2014 at 10:47
  • possible duplicate of Force my local master to be origin/master Commented Jul 4, 2014 at 11:22