Git 常用命令 基本命令 # 克隆 git clone <url> # 拉取 git pull # 新建分支 git checkout -b <branch> # 合并 git merge <target-branch> # 上传 git add . git commit -m "<commit>
Ubuntu24 终端显示 Git 分支信息 git 仓库:git/git: Git Source Code Mirror,需要用到仓库中的脚本 contrib/completion/git-prompt.sh,具体使用方法在该脚本的注释部分。 cd /workspace git clone htt