2016-09-13 44 views
2

想找到不同的方式,我们可以参考提交git。任何人都可以让我知道我们可以参考git提交的不同方式吗?可能的方式提交提交

+0

你能解释一下你的问题好? – Damiano

+1

运行'git revisions --help'或读取[gitrevisions](https://git-scm.con/docs/gitrevisions)。 – ElpieKay

+1

sha值? – hjpotter92

回答

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.