企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## git fetch(Download objects and refs(引用) from another repository) ``` git fetch origin master:master git fetch <远程主机名> <分支名> ``` ## pull = fetch + merge ``` git pull origin master git pull <远程主机名> <远程分支名>:<本地分支名> ``` ## push(Update remote refs along with associated objects) ``` git push origin master:master git push <远程主机名> <本地分支名>:<远程分支名> ``` **** ## 添加文件到暂存区 ``` git add filename ``` > 添加所有修改的文件 使用 `git add . ` ## 提交到本地版本库“描述提交的内容 ``` git commit -m "备注" ``` **** ### 不小心提交了内容需要修改备注怎么办? ``` git commit --amend -m "这才是本次提交的主要内容备注" ```