diff options
author | Silvino Silva <silvino@bk.ru> | 2018-02-25 17:35:59 +0000 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2018-02-25 17:35:59 +0000 |
commit | 85ba03dd696d12477259e29a0b25e85a68108ca0 (patch) | |
tree | 4ff686f58825183c30b60ef21dc42dee0cfb3d6e /dev/git/index.html | |
parent | 4de6c813ede901132b05f0d36c13900c6e9a4366 (diff) | |
download | doc-85ba03dd696d12477259e29a0b25e85a68108ca0.tar.gz |
git index html fix
Diffstat (limited to 'dev/git/index.html')
-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 -- . |