码迷,mamicode.com
首页 > 其他好文 > 详细

Git - The most common git commands in the day-to-day work

时间:2018-05-19 01:14:53      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:nbsp   out   could   div   think   name   rem   check   from   

We use git commands in the day to day work, below are the most common git commands I could think of.

 

 

  1.  Create a new branch
    • git branch <branchName>
  2. Switch to the new branch
    • git checkout <branchName>
  3. Create a new branch and switch to it
    • git checkout -b <branchName>
  4. Track updates from remote branches but not pull in
    •  git fetch

    Git - The most common git commands in the day-to-day work

    标签:nbsp   out   could   div   think   name   rem   check   from   

    原文地址:https://www.cnblogs.com/iloverabbit/p/8587034.html

    (0)
    (0)
       
    举报
    评论 一句话评论(0
    登录后才能评论!
    © 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
    迷上了代码!