我对我的代码进行了一些更改,然后做了一个: git add 。git commit git push origin master。
现在我意识到我犯了一些错误,我想取回之前提交的代码,然后重新进行更改并将它们推送回服务器。
这是 git 日志输出:
commit 3254c7668610a86eb930798c3c50fb5e1c298cbf
Author: Subhayan Bhattacharya <subhayan.bhattacharya@hpe.com>
Date: Wed Sep 6 00:53:39 2017 -0700
Made changed to downloadpkgapp.sh
commit c6577344eaa7ed1ac7fc911892cf85f66a0ac0b9
Author: Subhayan Bhattacharya <subhayan.bhattacharya@hpe.com>
Date: Wed Aug 16 02:56:17 2017 -0700
commiting changes to file CallProgram.py
commit 3839fa51edb20812c10d96f40b36aaa4fada9200
Author: dheeraj.mittal <dheeraj.mittal@hpe.com>
Date: Sun Jun 11 11:17:41 2017 +0200
added execute permission command for application package
有人请帮助我。我很难理解 GIT。因此,如果有人也可以解释建议的任何步骤,那就太好了。