1. 程式人生 > >Git - The most common git commands in the day-to-day work

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

AC date day man ranch mman upd BE work

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