1. 添加远程仓库地址 git remote add origin xxxxxxxxxxxx 2.初始化仓库 git init 3.创建分支 git checkout -b xxxxxx 4. 查看当前分支 git branch 5. 查看远程分支 git branch -a 6.合并分支 git merge fake-branch 7.删除指定分支 git branch -d fake-branch 8.将更改加入暂存区 git add -A 9.提交更改 git commit -m "fake-word" 10.切换分支 git checkout fake-branch 11.推送分支 git push origin master 12.已经被管理的文件还没有提交到暂存区的时候撤销更改 git checkout . 13.放弃没被管理(新创建的文件)和文件夹的更改 git checkout -f -d
|
|
来自: python_lover > 《待分类》