Skip to content

Commit 1646af5

Browse files
author
Eric James Michael Ritz
committed
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 <[email protected]>
1 parent 8234cbe commit 1646af5

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
<!-- @doxie.inject start toc -->
55
<!-- Don’t remove or change the comment above – that can break automatic updates. -->
6+
* [Everyday Git in twenty commands or so](https://github.com/git-tips/tips#everyday-git-in-twenty-commands-or-so)
67
* [Overwrite pull](https://github.com/git-tips/tips#overwrite-pull)
78
* [List of all files till a commit](https://github.com/git-tips/tips#list-of-all-files-till-a-commit)
89
* [Git reset first commit](https://github.com/git-tips/tips#git-reset-first-commit)
@@ -70,6 +71,11 @@
7071

7172
<!-- @doxie.inject start -->
7273
<!-- Don’t remove or change the comment above – that can break automatic updates. -->
74+
## Everyday Git in twenty commands or so
75+
```sh
76+
git help everyday
77+
```
78+
7379
## Overwrite pull
7480
```sh
7581
git fetch --all && git reset --hard origin/master

tips.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
[
2+
{
3+
"title": "Everyday Git in twenty commands or so",
4+
"tip": "git help everyday"
5+
},
26
{
37
"title": "Overwrite pull",
48
"tip": "git fetch --all && git reset --hard origin/master"
@@ -241,7 +245,7 @@
241245
"tip": "git bundle create <file> <branch-name>"
242246
},
243247
{
244-
"title": "Import form a bundle",
248+
"title": "Import from a bundle",
245249
"tip": "git clone repo.bundle <repo-dir> -b <branch-name>"
246250
},
247251
{

0 commit comments

Comments
 (0)