User Tools

Site Tools


git

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
git [2026/06/16 00:11] – [diff] jhagstrandgit [2026/06/16 00:13] (current) – [diff] jhagstrand
Line 275: Line 275:
 Use diff to find the differences between two commits.\\ Use diff to find the differences between two commits.\\
  
-  git diff 1bde095 b0ba90d # compare two commits +  git diff 1bde095 b0ba90d   # compare two commits 
-  git diff master sidebar  # compare two branches +  git diff master sidebar    # compare two branches 
-  git diff master sidebar html/js/hud.js  # compare two versions of a file+  git diff master sidebar hud.js  # compare two versions of a file
  
 By default diff compares all of the currently modified files. By default diff compares all of the currently modified files.
Line 308: Line 308:
 I don't know why this is used.\\ I don't know why this is used.\\
  
-  git diff master sidebar html/js/hud.js +  git diff master sidebar hud.js 
-  git diff master sidebar -- html/js/hud.js +  git diff master sidebar -- hud.js 
-  git diff master sidebar html/js/hud.js --+  git diff master sidebar hud.js --
  
 ====log==== ====log====
git.1781583111.txt.gz · Last modified: 2026/06/16 00:11 by jhagstrand

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki