diff options
author | ashraf <ashrafulalam2k@gmail.com> | 2022-08-01 16:11:00 +0100 |
---|---|---|
committer | ashraf <ashrafulalam2k@gmail.com> | 2022-08-01 16:11:00 +0100 |
commit | 1b442a5d34e79a26ade10c6adbee01745a3ac7ef (patch) | |
tree | 90a5a38c8bb4f6d95e6799463733757f51a697fe /git.html.markdown | |
parent | 3bb69ae2892a0155da4f3576d7944636df80fc1d (diff) |
Added git blame to the documentation
Diffstat (limited to 'git.html.markdown')
-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..5a1d2311 100644 --- a/git.html.markdown +++ b/git.html.markdown @@ -581,7 +581,19 @@ $ git rm HelloWorld.c # Remove a file from a nested dir $ git rm /pather/to/the/file/HelloWorld.c ``` +### blame +Examine specific points the code's history and find out who the last author was on that modified 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) |