2016-09-13 72 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.