Git相关

作者: 大小姐lemon | 来源:发表于2019-10-12 19:38 被阅读0次

下载一个项目和它的整个代码历史 $ git clone [url]

列出所有本地分支 $ git branch

列出所有远程分支 $ git branch -r

列出所有本地分支和远程分支 $ git branch -a

恢复暂存区的所有文件到工作区 $ git checkout .

切换到指定分支,并更新工作区 $ git checkout [branch-name]

切换到上一个分支 $ git checkout -

显示当前分支的版本历史 $ git log

显示有变更的文件 $ git status

下载远程仓库的所有变动 $ git fetch [remote]

相关文章

  • git基本命令

    git常用命令 git丢弃更改相关 git连接远程仓库相关 git切换分支相关 git stash相关 git标签相关

  • 前端 | Git的学习

    文章目录 Git相关命令 Git相关命令 git init :初始化本地git目录,生成 .git 文件夹 git...

  • 2019-06-26: Git 相关?

    一:Git相关 '--------------------------git pull--------------...

  • Git相关

    关联到GitHub http://www.runoob.com/git/git-remote-repo.html

  • Git相关

    更新 fork 的仓库 https://github.com/lxconan/java/blob/master/s...

  • git相关

    常见命令 git help git config --global user.name "一纸砚白" git co...

  • git 相关

    2018年3月27日15:31:29 用eclipse 用习惯了,换着思维使用一下git,服务器用的是coding...

  • git相关

    https://www.jianshu.com/p/52694939213b

  • git相关

    本地创建新分支: git checkout -b 新分支名字 或者 git branch 新分支名字 git br...

  • git 相关

    1,git clone .. 克隆远程分支到本地。 2,git checkout branchName 在本地切换...

网友评论

      本文标题:Git相关

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