美文网首页iOS开发
Github常用的命令

Github常用的命令

作者: 不务正业的小肖 | 来源:发表于2018-06-21 22:14 被阅读0次

    下载 git clone + 地址

    切换分支:git checkout name

    撤销修改:git checkout – file

    删除文件:git rm file

    查看状态:git status

    添加记录:git add file 或 git add .

    添加描述:git commit -m “miao shu nei rong”

    同步数据:git pull

    提交数据:git push origin name

    分支操作

    查看分支:git branch

    创建分支:git branch name

    切换分支:git checkout name

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

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

    删除分支:git branch -d name

    删除远程分支:git push origin :name

    相关文章

      网友评论

        本文标题:Github常用的命令

        本文链接:https://www.haomeiwen.com/subject/gkfhyftx.html