Git - 如果我们想要拍摄快照 - 我们应该分支吗?

时间:2022-11-19 15:06:20

Let's say I'm working on this thing, and I want to preserve this state, so that, if something goes wrong, I can revert to it.

假设我正在研究这个问题,我想保留这个状态,这样,如果出现问题,我可以恢复它。

According to this, it's not clear to me:

据此,我不清楚:

What should we do when on this situation:

在这种情况下我们应该怎么做:

commit or create branch ?

提交或创建分支?

1 个解决方案

#1


3  

I think Git Tag is what you are looking for.

我认为Git Tag正是您所寻找的。

http://git-scm.com/book/en/v2/Git-Basics-Tagging

http://git-scm.com/book/en/v2/Git-Basics-Tagging

#1


3  

I think Git Tag is what you are looking for.

我认为Git Tag正是您所寻找的。

http://git-scm.com/book/en/v2/Git-Basics-Tagging

http://git-scm.com/book/en/v2/Git-Basics-Tagging