2022-10-06
gitbook-reset-commit

git reset, 一直是我沒有弄懂的部分,這篇要多看幾次

  • 節錄文章中的說明
    • Reset 這個英文單字的翻譯是「重新設定」,但事實上 Git 的 Reset 指令用中文來說比較像是「前往」或「變成」,也就是「go to」或「become」的概念
    • $ git reset HEAD~2
      • 正確的說,上面這個指令應該要解讀成「我要前往兩個 Commit 之前的狀態」或是「我要變成兩個 Commit 之前的狀態」,而隨著使用不同的參數模式,原本的這些檔案就會丟去不同的區域。

Reference

Read More

2022-10-06
gitbook-view-log-of-a-file

滿好用的技巧,之前不知道,@@

  • 使用 sample
    • git log welcome.html
    • git log -p welcome.html

Reference

Read More

2022-10-06
gitbook-ignore

Read More

2022-10-05
gitbook-convenient-settings

設定

  • 有設定了 git log & git l,可以多用用看

Reference

Read More

2022-10-05
github-book-local-config

為你自己學 Git,是一本我滿喜歡的 git 書籍,我有買了實體書 & 數位版
這邊筆記一下,我由網站上看到的資料

設定

  • 可以每個專案設定不同的作者嗎
  • $ git config --local user.name Sherly $ git config --local user.email sherly@5xruby.tw

Reference

Read More