【Linux】git命令使用

clone到本地后,在文件目录中 cmd 打开cmd命令窗口

1、查看所有分支

git branch -a

2、删除分支

git push origin --delete liyongyan(branch-name)

3、新建分支

git branch <branch-name>

4、切换分支

git checkout <branch-name>

5、提交代码

git commit

posted @ 2019-07-02 19:46  宇之星宸  阅读(869)  评论(0)    收藏  举报