diff options
Diffstat (limited to 'dev/git')
-rw-r--r-- | dev/git/index.html | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/dev/git/index.html b/dev/git/index.html index 40ae49d..ad4700a 100644 --- a/dev/git/index.html +++ b/dev/git/index.html @@ -1,6 +1,6 @@ -<!DOCTYPEhtml> -<htmldir="ltr" lang="en"> -<head> +<!DOCTYPE html> +<html dir="ltr" lang="en"> + <head> <meta charset='utf-8'> <title>Git</title> </head> @@ -269,7 +269,7 @@ $ git ls-files --deleted -z | xargs -0 git rm </pre> - <h3 id="logdiff">2.2. Logs and commits</h3> + <h3 id="logdiff">2.2. Logs, diff commits</h3> <p>Create patch files to target branch/tag/ref;</p> @@ -277,7 +277,13 @@ $ git format-patch --no-prefix software-v0.0.1 </pre> - <p>Last commit that affected current path</p> + <p>Same using diff tool;</p> + + <pre> + $ diff orig file > file.patch + </pre> + + <p>Query last commit that affected current file path</p> <pre> $ git rev-list -n 1 HEAD -- . |