使用者工具

網站工具


computer:program:git

差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版前次修改
下次修改
前次修改
computer:program:git [2022/07/03 00:54] – [Tip] wmcomputer:program:git [2025/06/24 07:36] (目前版本) – [Hooks] wm
行 27: 行 27:
 ====Hooks==== ====Hooks====
   * [[http://githooks.com/|Git hooks]]   * [[http://githooks.com/|Git hooks]]
 +  * [[https://lefthook.dev/|Lefthook]]
   * [[http://codeutopia.net/blog/2011/06/30/how-to-automatically-run-unit-tests-from-a-git-push/|How to automatically run unit tests from a git push]]   * [[http://codeutopia.net/blog/2011/06/30/how-to-automatically-run-unit-tests-from-a-git-push/|How to automatically run unit tests from a git push]]
   * [[http://viget.com/extend/grunt-getting-started-with-git-hooks|Grunt: Getting Started with Git Hooks]]   * [[http://viget.com/extend/grunt-getting-started-with-git-hooks|Grunt: Getting Started with Git Hooks]]
行 36: 行 37:
 ==== Worktree ==== ==== Worktree ====
   * [[https://ihower.tw/blog/archives/8740|Git worktree: 同時開多個工作目錄]]   * [[https://ihower.tw/blog/archives/8740|Git worktree: 同時開多個工作目錄]]
 +  * [[https://compiledsuccessfully.dev/git-skip-worktree/|Git update-index --skip-worktree, and how I used to hate config files]]
 +==== Notes ====
 +  * [[https://tylercipriani.com/blog/2022/11/19/git-notes-gits-coolest-most-unloved-feature/|Git Notes: git's coolest, most unloved­ feature]]
 ====Tip==== ====Tip====
   * [[https://dangitgit.com/|Dangit, Git!?!]]   * [[https://dangitgit.com/|Dangit, Git!?!]]
行 101: 行 105:
   * [[http://caiustheory.com/git-git-git-git-git/|git git git git git]]   * [[http://caiustheory.com/git-git-git-git-git/|git git git git git]]
 ====Command==== ====Command====
 +  * <code>git commit --amend –C @</code>
   * <code>git checkout -- .</code>   * <code>git checkout -- .</code>
   * <code>git rm --cached</code>   * <code>git rm --cached</code>
行 106: 行 111:
   * <code>git shortlog</code>   * <code>git shortlog</code>
   * <code>git fsck --no-reflogs</code>   * <code>git fsck --no-reflogs</code>
-  * <code>git commit --amend –C HEAD</code>+  * <code>git update-index --assume-unchanged</code>
   * <code>git ls-files -o --directory --exclude-standard</code>   * <code>git ls-files -o --directory --exclude-standard</code>
 <code> <code>
行 193: 行 198:
   * [[https://gogs.io/|Gogs]]   * [[https://gogs.io/|Gogs]]
   * [[https://gitea.io/|Gitea]]   * [[https://gitea.io/|Gitea]]
 +    * [[https://forgejo.org/|Forgejo]]
   * [[http://gitolite.com/|Gitolite]]   * [[http://gitolite.com/|Gitolite]]
   * [[https://sourcehut.org/|sourcehut]]   * [[https://sourcehut.org/|sourcehut]]
行 208: 行 214:
   * [[http://jonas.nitro.dk/tig/|Tig]]   * [[http://jonas.nitro.dk/tig/|Tig]]
     * [[http://blogs.atlassian.com/2013/05/git-tig/|git? tig!]]     * [[http://blogs.atlassian.com/2013/05/git-tig/|git? tig!]]
 +    * .tigrc <code>bind main R !git rebase -i --autosquash %(commit)</code>
   * [[https://github.com/extrawurst/gitui|gitui]]   * [[https://github.com/extrawurst/gitui|gitui]]
   * [[https://github.com/jesseduffield/lazygit|lazygit]]   * [[https://github.com/jesseduffield/lazygit|lazygit]]
computer/program/git.1656809655.txt.gz · 上一次變更: 2022/07/03 00:54 由 wm