# 关联远程仓库
git remote add origin <url>
# 下载远程仓库
git clone <url>
# 提交到暂存区
git add .
# 本地提交
git commit -m "add new file"
#
git pull origin master
# 查看分支
git branch
# 新建分支
git branch newBranch
# 切换分支
git checkout <branch>
# 合并分支
git merge <branch>
# 停止跟踪指定文件
git rm --cached <file>
git remote -v
# 切换远程地址
git remote set-url origin <url>
Git常用命令
最新推荐文章于 2023-05-04 09:44:55 发布