git

  • .gitignore 忽略清單

    第 19 天:設定 .gitignore 忽略清單

  • 還原 git add 但還沒 git commit 使用 git resetgit reset <file>

  • git log --graph --oneline 簡單查看log分支的分歧及合併的歷史。

  • 從遠端抓不同的 branch
    git clone -b <branch> <remote_repo>
    git checkout -b <branch-name> <origin/branch_name>

    • e.g. git checkout -b enum-account-number origin/enum-account-number
  • 刪除 branch
    git branch -d <branch>

參考資料:

results matching ""

    No results matching ""