diff options
author | Silvino Silva <silvino@bk.ru> | 2018-04-06 17:43:58 +0100 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2018-04-06 17:43:58 +0100 |
commit | 6ee060f04bdd91b66b8dfaa21f29758ae450348f (patch) | |
tree | 0ce231727fdbe28bc1ed64546be93f1ee988d7b6 /dev/git/index.html | |
parent | 746c2f76a305d4251f58f3327f8147f60a1be38f (diff) | |
parent | 152177eeca633a26a1228cfded025b5a7d861c66 (diff) | |
download | doc-6ee060f04bdd91b66b8dfaa21f29758ae450348f.tar.gz |
Merge branch 'r-0.3.3' into develop
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 -- . |