Git使用总结

下载代码到本地

git clone xx

拉取远程代码-更新本地代码

git pull -u origin master:master

提交到暂存区

git add . (包括修改的、新增的,不包含删除的文件)

git add -u (只提交修改的)

git add -A (上面的两个合集)

提交到仓库

git commit -m "添加备注"

git push -u origin master:master

最后修改:2024 年 10 月 28 日
如果觉得我的文章对你有用,请随意赞赏