Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 如何更新已提交的当前文件?_Git_Github_Repository_Commit - Fatal编程技术网

Git 如何更新已提交的当前文件?

Git 如何更新已提交的当前文件?,git,github,repository,commit,Git,Github,Repository,Commit,我已经将我的文件提交到我的git存储库,现在我已经编辑了我的文件,希望替换或更新我以前的版本。我该怎么做呢?您可以再次提交并将其推送到GitHub。在本地更新文件,提交并推送。

我已经将我的文件提交到我的git存储库,现在我已经编辑了我的文件,希望替换或更新我以前的版本。我该怎么做呢?

您可以再次提交并将其推送到GitHub。

在本地更新文件,提交并推送。