首先添加需要更新的代码目录
git add <file>
然后
git commit -m "message"可以添加代码信息
git commit -help可以查看使用帮助
最后push本地仓库
git push
完成
使用git status可以查看当前本地仓库状态