1
0
mirror of https://github.com/namibia/tips.git synced 2024-12-22 18:18:58 +00:00

Show how to read guides that come with Git

This patch adds a tip explaining `git help -g`.  That command will
list a collection of useful guides that come "pre-built" with Git,
e.g. `git help workflows` and `git help revisions`.  These are useful
resources for learning and looking-up common Git concepts and
techniques, and that broad usefulness is the justification for placing
the tip near the very top of the list.

Signed-off-by: Eric James Michael Ritz <ejmr@plutono.com>
This commit is contained in:
Eric James Michael Ritz 2015-11-17 21:20:38 -05:00
parent 35376fe492
commit d80c4ed36c
2 changed files with 10 additions and 0 deletions

View File

@ -4,6 +4,7 @@
<!-- @doxie.inject start toc -->
<!-- Dont remove or change the comment above that can break automatic updates. -->
* [Everyday Git in twenty commands or so](https://github.com/git-tips/tips#everyday-git-in-twenty-commands-or-so)
* [Show helpful guides that come with Git](https://github.com/git-tips/tips#show-helpful-guides-that-come-with-git)
* [Overwrite pull](https://github.com/git-tips/tips#overwrite-pull)
* [List of all files till a commit](https://github.com/git-tips/tips#list-of-all-files-till-a-commit)
* [Git reset first commit](https://github.com/git-tips/tips#git-reset-first-commit)
@ -79,6 +80,11 @@
git help everyday
```
## Show helpful guides that come with Git
```sh
git help -g
```
## Overwrite pull
```sh
git fetch --all && git reset --hard origin/master

View File

@ -3,6 +3,10 @@
"title": "Everyday Git in twenty commands or so",
"tip": "git help everyday"
},
{
"title": "Show helpful guides that come with Git",
"tip": "git help -g"
},
{
"title": "Overwrite pull",
"tip": "git fetch --all && git reset --hard origin/master"