2021/2/19 git使用
git branch xxx(创建分支名)
git checkout xxx(切换分支)
git checkout -b xxx(创建并切换分支)
git remote add xxxx(仓库名) git@gitee.com 绑定推送地址地址
git remote -v 查看仓库名 和对应地址
添加状态
git add .
提交到本地仓库
git commit -m "备注信息"
提交到远程仓库
git push xxx(仓库名称) xxx(分支名称)
合并分支
git merge xxx(被合并分支,但是不会被删除)
强制推送合并
git push -f xxx(仓库名称) (分支)
拉取远程云端
git pull xxxx(仓库名称) (分支)
拉去远程仓库信息
git clone Url

浙公网安备 33010602011771号