diff options
author | Marcel Ribeiro Dantas, Ph.D <ribeirodantasdm@gmail.com> | 2022-08-02 08:24:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 08:24:47 +0200 |
commit | 82134b0c2e8fdc9c6587642d76d3e85aca07117a (patch) | |
tree | 365aa96061789a2c037fb6b59ed90cf06d96af59 | |
parent | 11220eaf8784f6e18dfbdee55c13bcf5e6e76679 (diff) | |
parent | 62b1dc65295f0d293e5c54d2b5c20a6cbdd3f0e9 (diff) |
Merge pull request #4474 from ashraful-alam2k/ashraful-alam2k-patch-1
[git/en] add git blame
-rw-r--r-- | git.html.markdown | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/git.html.markdown b/git.html.markdown index 0d8e43ec..b587e624 100644 --- a/git.html.markdown +++ b/git.html.markdown @@ -582,6 +582,18 @@ $ git rm HelloWorld.c $ git rm /pather/to/the/file/HelloWorld.c ``` +### blame +Examine specific parts of the code's history and find out who was the last author to modify that line +```bash +# find the authors on the latest modified lines +$ git blame google_python_style.vim +b88c6a1b (Google Python team 2019-12-30 13:45:23 -0800 12) " See the License for the specific language governing permissions and +b88c6a1b (Google Python team 2019-12-30 13:45:23 -0800 13) " limitations under the License. +b88c6a1b (Google Python team 2019-12-30 13:45:23 -0800 14) +222e6da8 (mshields@google.com 2010-11-29 20:32:06 +0000 15) " Indent Python in the Google way. +222e6da8 (mshields@google.com 2010-11-29 20:32:06 +0000 16) +222e6da8 (mshields@google.com 2010-11-29 20:32:06 +0000 17) setlocal indentexpr=GetGooglePythonIndent(v:lnum) +``` ## Further Information * [tryGit - A fun interactive way to learn Git.](http://try.github.io/levels/1/challenges/1) |