github命令

git init  初始化本地库
git remote add origin https://git.oschina.net/Maxs98/sis001.git  添加远程库


git status 查看状态
git add sis001.py 加入文件
git commit -m "1234" 提交到本地库
git push origin <master分支> 上传到远程库




查看分支:git branch


创建分支:git branch <name>


切换分支:git checkout <name>


创建+切换分支:git checkout -b <name>


合并某分支到当前分支:git merge <name>


删除分支:git branch -d <name>


帮助文档:http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000

猜你喜欢

转载自blog.csdn.net/s98/article/details/45479519