美文网首页Git
Git系列2:Git Fetch Pull Push

Git系列2:Git Fetch Pull Push

作者: XBruce | 来源:发表于2020-01-02 10:46 被阅读0次
  • Fetch更新Tracking分支,但是不会更新local/master和HEAD指向
git fetch
  • Pull更新Tracking分支,同时更新local/master和HEAD指向
git pull [<resp>] [<branch>]
--ff (default)
--no-ff
--ff-only
--rebase [--preserve-merges]
  • Push
    git push [-u] [<repo>] [<branch>]
    -u Track this branch
git push -u origin master

相关文章

网友评论

    本文标题:Git系列2:Git Fetch Pull Push

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