summaryrefslogtreecommitdiffhomepage
path: root/git.html.markdown
diff options
context:
space:
mode:
authorBoris Verkhovskiy <boris.verk@gmail.com>2024-04-04 04:26:14 -0700
committerGitHub <noreply@github.com>2024-04-04 04:26:14 -0700
commit4d59048f0df8441e5ad2c2c440e8d54b0e9c11b6 (patch)
treefa2dbdd40da35b3c27f928f1112ea43193a7482e /git.html.markdown
parentb38d4437120e700646a45dff68b7c4ff3f7109c0 (diff)
parent327001f58739489b41f6b1f7bbc8be900847b381 (diff)
Merge branch 'master' into patch-2
Diffstat (limited to 'git.html.markdown')
-rw-r--r--git.html.markdown20
1 files changed, 17 insertions, 3 deletions
diff --git a/git.html.markdown b/git.html.markdown
index a40ef01b..9d33225f 100644
--- a/git.html.markdown
+++ b/git.html.markdown
@@ -124,9 +124,12 @@ To configure settings. Whether it be for the repository, the system itself,
or global configurations ( global config file is `~/.gitconfig` ).
```bash
-# Print & Set Some Basic Config Variables (Global)
+# Set & Print Some Basic Config Variables (Global)
$ git config --global user.email "MyEmail@Zoho.com"
$ git config --global user.name "My Name"
+
+$ git config --global user.email
+$ git config --global user.name
```
[Learn More About git config.](http://git-scm.com/docs/git-config)
@@ -579,6 +582,19 @@ $ 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)
@@ -597,8 +613,6 @@ $ git rm /pather/to/the/file/HelloWorld.c
* [SalesForce Cheat Sheet](http://res.cloudinary.com/hy4kyit2a/image/upload/SF_git_cheatsheet.pdf)
-* [GitGuys](http://www.gitguys.com/)
-
* [Git - the simple guide](http://rogerdudler.github.io/git-guide/index.html)
* [Pro Git](http://www.git-scm.com/book/en/v2)