注意:本教程省略前面配置

建立仓库

1
git init

关联仓库

注意:需获取仓库地址

1
git remote add origin git@github.com:<your username>/<your repository>

创建分支

1
git checkout -b <branch>

添加文件(全部)

1
git add .
1
git commit -m "Upload"

解决冲突

1
git pull --rebase origin master

上传文件

注意:master代表你的分支名

1
git push -u origin master

评论