引用提交的可能方法

时间:2016-09-13 06:18:17

标签: git

想要找到我们可以在git中引用提交的不同方法。有谁能请让我知道我们可以在git中引用提交的不同方式是什么?

1 个答案:

答案 0 :(得分:0)

以下是git引用提交的一些方法:

1) commits are referred as relative to one another. For instance HEAD~1 would refer to the commit parent of HEAD.
2) refspecs can be used to refer commits that reside on remote branches using local Git environment.
3) Every tags created in repository would become a ref, which Git would maintain certain commits alias's.
4) Git's commit hash can be used to refer corresponding commits.