Git 常用命令

82 阅读1分钟

git教程

拷贝远程仓库

git clone 远程仓库地址

拉取远程分支代码

git pull

推送本地代码

git add .
git commit -m 描述
git push origin 分支名

切换分支

git checkout 分支名

创建分支

git checkout -b 分支名

查看当前分支状态

git status

查看当前分支 & 分支列表

git branch