Git: Make one branch exactly like another

后端 未结 4 697
孤独总比滥情好
孤独总比滥情好 2021-01-21 04:29

I am relatively new to Git, and I\'m still not very comfortable with it. Right now, I\'m looking for the command/options/magic that can make the current branch look like anothe

4条回答
  •  后悔当初
    2021-01-21 05:28

    Branches are just pointers within the graph of commits. You can git-reset a branch to point to anywhere you like, just make sure you checkout the intended branch before making any further commits.

提交回复
热议问题