我對代碼做了一些更改,然後做了一個: git add。 git commit git push origin master。如何獲取代碼到先前在GIT中提交的已被推送到服務器的代碼
現在我意識到我犯了一些錯誤,我想回到先前提交的代碼,然後重新執行更改並將它們推回服務器。
這是git的日誌輸出:
commit 3254c7668610a86eb930798c3c50fb5e1c298cbf
Author: Subhayan Bhattacharya <[email protected]>
Date: Wed Sep 6 00:53:39 2017 -0700
Made changed to downloadpkgapp.sh
commit c6577344eaa7ed1ac7fc911892cf85f66a0ac0b9
Author: Subhayan Bhattacharya <[email protected]>
Date: Wed Aug 16 02:56:17 2017 -0700
commiting changes to file CallProgram.py
commit 3839fa51edb20812c10d96f40b36aaa4fada9200
Author: dheeraj.mittal <[email protected]>
Date: Sun Jun 11 11:17:41 2017 +0200
added execute permission command for application package
有人請幫助我一樣。我很難理解GIT。所以如果有人也可以解釋任何建議的步驟都很棒。
@downvoter:你能說明任何原因嗎? – DaniCE