Try   HackMD

git建branch & push branch

tags: git github

以下示範branch名稱為jin

  • 第一步的git clone 指令

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

還不會的可以參考我的另一篇文章: 學會使用Git與GitHub


  • 建立branch
    git branch jin

  • switch to branch
    git checkout jin

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

  • push branch
    git push origin jin

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

  • 補充: 相當於建立branch + checkout到branch的指令
    git checkout -b jin

  • 補充:
    cd的意思是change direction(切換路徑),可以用切換到你想去的資料夾,寫法是用相對路徑