首先添加需要更新的代码目录 git add <file> 然后 git commit -m "message"可以添加代码信息 git commit -help可以查看使用帮助 最后push本地仓库 git push 完成 使用git status可以查看当前本地仓库状态 相关文章: 2022-02-25 2021-10-03 2022-12-23 2022-12-23 2022-02-07 2021-06-13 2021-11-04 2022-02-07