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

Describe help for commonly-used Git commands with examples

This patch adds the command `git help everyday`, which shows a
man-page that comes with Git describing the most common commands for
everyday usage.  The tip is specifically at the top of the list on the
grounds that it is the fastest way to find help for performing basic
operations in Git, which is very useful to people new to Git.

Signed-off-by: Eric James Michael Ritz <ejmr@plutono.com>
This commit is contained in:
Eric James Michael Ritz 2015-10-28 00:25:48 -04:00
parent 8234cbe16b
commit 1646af51e3
2 changed files with 11 additions and 1 deletions

View File

@ -3,6 +3,7 @@
<!-- @doxie.inject start toc --> <!-- @doxie.inject start toc -->
<!-- Dont remove or change the comment above that can break automatic updates. --> <!-- 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)
* [Overwrite pull](https://github.com/git-tips/tips#overwrite-pull) * [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) * [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) * [Git reset first commit](https://github.com/git-tips/tips#git-reset-first-commit)
@ -70,6 +71,11 @@
<!-- @doxie.inject start --> <!-- @doxie.inject start -->
<!-- Dont remove or change the comment above that can break automatic updates. --> <!-- Dont remove or change the comment above that can break automatic updates. -->
## Everyday Git in twenty commands or so
```sh
git help everyday
```
## Overwrite pull ## Overwrite pull
```sh ```sh
git fetch --all && git reset --hard origin/master git fetch --all && git reset --hard origin/master

View File

@ -1,4 +1,8 @@
[ [
{
"title": "Everyday Git in twenty commands or so",
"tip": "git help everyday"
},
{ {
"title": "Overwrite pull", "title": "Overwrite pull",
"tip": "git fetch --all && git reset --hard origin/master" "tip": "git fetch --all && git reset --hard origin/master"
@ -241,7 +245,7 @@
"tip": "git bundle create <file> <branch-name>" "tip": "git bundle create <file> <branch-name>"
}, },
{ {
"title": "Import form a bundle", "title": "Import from a bundle",
"tip": "git clone repo.bundle <repo-dir> -b <branch-name>" "tip": "git clone repo.bundle <repo-dir> -b <branch-name>"
}, },
{ {