GitHub常用命令

初始化仓库

git init

下载仓库

git clone 仓库地址

将所有违背跟踪的文件添加到本地仓库

git add .

查看状态

git status

执行提交

git commit -m project-init

提交线上仓库

git push

创建分支后,同步线上仓库

git pull

切换分支

git checkout 分支名

合并到主分支

git merge 分支名

提交线上

git pull
原文地址:https://www.cnblogs.com/ssxblog/p/11169318.html