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/13 13:57] – [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 68: Line 74:
   * [[https://git.wiki.kernel.org/index.php/Git_FAQ#How_do_I_clone_a_repository_with_all_remotely_tracked_branches.3F|How do I clone a repository with all remotely tracked branches?]]   * [[https://git.wiki.kernel.org/index.php/Git_FAQ#How_do_I_clone_a_repository_with_all_remotely_tracked_branches.3F|How do I clone a repository with all remotely tracked branches?]]
   * [[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]]
 +
  
 ===== External links ===== ===== External links =====
Line 78: 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 89: Line 99:
   * ''git rm -rf :/ && git checkout commit-ish -- :/''   * ''git rm -rf :/ && git checkout commit-ish -- :/''
   * Danger with reverting a merge commit.   * Danger with reverting a merge commit.
 +  * Renaming:
 +    * ''git log -M''
 +  * ''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 104: Line 119:
 ==== Advanced Git === ==== Advanced Git ===
  
-  * [[git remotes]] 
   * [[git whitespace]]   * [[git whitespace]]
   * [[git clone variations]]   * [[git clone variations]]
  • git.1552485462.txt.gz
  • Last modified: 2019/03/13 13:57
  • by rpjday