git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
git [2019/03/14 20:46] – [Stuff to ponder, resolve and add somewhere] rpjdaygit [2019/10/01 19:03] (current) – [Specific topic pages] rpjday
Line 7: Line 7:
   * [[Git all commands]]   * [[Git all commands]]
   * [[Git plumbing porcelain]]   * [[Git plumbing porcelain]]
-  * [[Git revisions]] 
   * [[Git init]]   * [[Git init]]
   * [[Git config]]   * [[Git config]]
 +  * [[Git clone]]
   * [[Git blame]]   * [[Git blame]]
   * [[Git aliases]]   * [[Git aliases]]
 +  * [[Git branch]]
 +  * [[Git revisions]]
   * [[Git log]]   * [[Git log]]
   * [[Git add rm]]   * [[Git add rm]]
 +  * [[Git mv]]
   * [[Git commit]]   * [[Git commit]]
   * [[git_good_commits|What makes a good Git Commit?]]   * [[git_good_commits|What makes a good Git Commit?]]
Line 40: Line 43:
 ==== Working on ==== ==== Working on ====
  
 +  * [[Git clone]]
   * [[Git tag]]   * [[Git tag]]
   * [[Git reset]]   * [[Git reset]]
Line 54: Line 58:
   * [[Git writing an arbitrary blob]]   * [[Git writing an arbitrary blob]]
   * [[Git move uncommitted changes to topic branch]]   * [[Git move uncommitted changes to topic branch]]
 +  * [[Git bare shallow clones]]
 +  * [[Git install from source]]
  
 ==== Deprecated ==== ==== Deprecated ====
  
-  * git prune (use git gc)+  * git prune (use git gc, which calls git prune)
   * git whatchanged (use git log)   * git whatchanged (use git log)
   * git annotate (use git blame)   * git annotate (use git blame)
Line 69: Line 75:
   * [[https://git.wiki.kernel.org/index.php/Git_FAQ#How_do_I_recover_uncommitted_changes.3F|How do I recover uncommitted changes?]]   * [[https://git.wiki.kernel.org/index.php/Git_FAQ#How_do_I_recover_uncommitted_changes.3F|How do I recover uncommitted changes?]]
   * [[https://unix.stackexchange.com/questions/233327/is-it-possible-to-clone-only-part-of-a-git-project|sparse checkout]]   * [[https://unix.stackexchange.com/questions/233327/is-it-possible-to-clone-only-part-of-a-git-project|sparse checkout]]
-  * [[https://www.juandebravo.com/2017/12/02/git-filter-smudge-and-clean/|Git smudge and clean]]+
  
 ===== External links ===== ===== External links =====
Line 80: Line 86:
 ===== Stuff to ponder, resolve and add somewhere ===== ===== Stuff to ponder, resolve and add somewhere =====
  
 +  * WRT next commit, what is in the index is all that matters.
 +  * ''git ls-files''
   * More people should read ''man gitcli''. Seriously.   * More people should read ''man gitcli''. Seriously.
   * ''git log %%--%%remove-empty'' -- stop when a given path disappears.   * ''git log %%--%%remove-empty'' -- stop when a given path disappears.
Line 94: Line 102:
     * ''git log -M''     * ''git log -M''
   * ''git push origin +branchname''   * ''git push origin +branchname''
 +  * ''git checkout -b maint origin/maint''
 +  * What files changed in a given commit? ''git diff --name-only <commit>^!''
  
 ===== Other stuff to add (not sure where) ===== ===== Other stuff to add (not sure where) =====
Line 109: Line 119:
 ==== Advanced Git === ==== Advanced Git ===
  
-  * [[git remotes]] 
   * [[git whitespace]]   * [[git whitespace]]
   * [[git clone variations]]   * [[git clone variations]]
  • git.1552596390.txt.gz
  • Last modified: 2019/03/14 20:46
  • by rpjday