Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inconsistent punctuation and typos #220

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Create local tag](#create-local-tag)
* [Delete local tag](#delete-local-tag)
* [Delete remote tag](#delete-remote-tag)
* [Undo local changes with the last content in head](#undo-local-changes-with-the-last-content-in-head)
* [Undo local changes with the content in index(staging)](#undo-local-changes-with-the-content-in-indexstaging)
* [Revert: Undo a commit by creating a new commit](#revert-undo-a-commit-by-creating-a-new-commit)
* [Reset: Discard commits, advised for private branch](#reset-discard-commits-advised-for-private-branch)
* [Reword the previous commit message](#reword-the-previous-commit-message)
* [See commit history for just the current branch](#see-commit-history-for-just-the-current-branch)
* [Amend author.](#amend-author)
* [Reset author, after author has been changed in the global config.](#reset-author-after-author-has-been-changed-in-the-global-config)
* [Amend author](#amend-author)
* [Reset author, after author has been changed in the global config](#reset-author-after-author-has-been-changed-in-the-global-config)
* [Changing a remote's URL](#changing-a-remotes-url)
* [Get list of all remote references](#get-list-of-all-remote-references)
* [Get list of all local and remote branches](#get-list-of-all-local-and-remote-branches)
Expand Down Expand Up @@ -76,11 +76,11 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Update all the submodules](#update-all-the-submodules)
* [Show all commits in the current branch yet to be merged to master](#show-all-commits-in-the-current-branch-yet-to-be-merged-to-master)
* [Rename a branch](#rename-a-branch)
* [Rebases 'feature' to 'master' and merges it in to master ](#rebases-feature-to-master-and-merges-it-in-to-master)
* [Rebases 'feature' to 'master' and merges it in to master](#rebases-feature-to-master-and-merges-it-in-to-master)
* [Archive the `master` branch](#archive-the-master-branch)
* [Modify previous commit without modifying the commit message](#modify-previous-commit-without-modifying-the-commit-message)
* [Prunes references to remove branches that have been deleted in the remote.](#prunes-references-to-remove-branches-that-have-been-deleted-in-the-remote)
* [Delete local branches that has been squash and merged in the remote.](#delete-local-branches-that-has-been-squash-and-merged-in-the-remote)
* [Prunes references to remove branches that have been deleted in the remote](#prunes-references-to-remove-branches-that-have-been-deleted-in-the-remote)
* [Delete local branches that has been squash and merged in the remote](#delete-local-branches-that-has-been-squash-and-merged-in-the-remote)
* [Retrieve the commit hash of the initial revision.](#retrieve-the-commit-hash-of-the-initial-revision)
* [Visualize the version tree.](#visualize-the-version-tree)
* [Visualize the tree including commits that are only referenced from reflogs](#visualize-the-tree-including-commits-that-are-only-referenced-from-reflogs)
Expand Down Expand Up @@ -141,7 +141,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Clone a shallow copy of a repository](#clone-a-shallow-copy-of-a-repository)
* [Search Commit log across all branches for given text](#search-commit-log-across-all-branches-for-given-text)
* [Get first commit in a branch (from master)](#get-first-commit-in-a-branch-from-master)
* [Unstaging Staged file](#unstaging-staged-file)
* [Unstage Staged file](#unstage-staged-file)
* [Force push to Remote Repository](#force-push-to-remote-repository)
* [Adding Remote name](#adding-remote-name)
* [List all currently configured remotes](#list-all-currently-configured-remotes)
Expand Down Expand Up @@ -175,7 +175,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Push the current branch to the same name on the remote repository](#push-the-current-branch-to-the-same-name-on-the-remote-repository)
* [Push a new local branch to remote repository and track](#push-a-new-local-branch-to-remote-repository-and-track)
* [Change a branch base](#change-a-branch-base)
* [Use SSH instead of HTTPs for remotes](#use-ssh-instead-of-https-for-remotes)
* [Use SSH instead of HTTPS for remotes](#use-ssh-instead-of-https-for-remotes)
* [Update a submodule to the latest commit](#update-a-submodule-to-the-latest-commit)
* [Prevent auto replacing LF with CRLF](#prevent-auto-replacing-lf-with-crlf)

Expand Down Expand Up @@ -359,12 +359,12 @@ git commit -v --amend
git cherry -v master
```

## Amend author.
## Amend author
```sh
git commit --amend --author='Author Name <[email protected]>'
```

## Reset author, after author has been changed in the global config.
## Reset author, after author has been changed in the global config
```sh
git commit --amend --reset-author --no-edit
```
Expand Down Expand Up @@ -650,7 +650,7 @@ __Alternatives:__
git branch -m [<old-branch-name>] <new-branch-name>
```

## Rebases 'feature' to 'master' and merges it in to master
## Rebases 'feature' to 'master' and merges it in to master
```sh
git rebase master feature && git checkout master && git merge -
```
Expand All @@ -665,7 +665,7 @@ git archive master --format=zip --output=master.zip
git add --all && git commit --amend --no-edit
```

## Prunes references to remove branches that have been deleted in the remote.
## Prunes references to remove branches that have been deleted in the remote
```sh
git fetch -p
```
Expand All @@ -676,7 +676,7 @@ __Alternatives:__
git remote prune origin
```

## Delete local branches that has been squash and merged in the remote.
## Delete local branches that has been squash and merged in the remote
```sh
git branch -vv | grep ': gone]' | awk '{print <!-- @doxie.inject start -->}' | xargs git branch -D
```
Expand Down Expand Up @@ -1049,7 +1049,7 @@ __Alternatives:__
git log --reverse master..<branch-name> | head -6
```

## Unstaging Staged file
## Unstage Staged file
```sh
git reset HEAD <file-name>
```
Expand Down Expand Up @@ -1245,7 +1245,7 @@ git push -u origin <branch_name>
git rebase --onto <new_base> <old_base>
```

## Use SSH instead of HTTPs for remotes
## Use SSH instead of HTTPS for remotes
```sh
git config --global url.'[email protected]:'.insteadOf 'https://github.com/'
```
Expand Down
14 changes: 7 additions & 7 deletions tips.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@
"title": "See commit history for just the current branch",
"tip": "git cherry -v master"
}, {
"title": "Amend author.",
"title": "Amend author",
"tip": "git commit --amend --author='Author Name <[email protected]>'"
}, {
"title": "Reset author, after author has been changed in the global config.",
"title": "Reset author, after author has been changed in the global config",
"tip": "git commit --amend --reset-author --no-edit"
}, {
"title": "Changing a remote's URL",
Expand Down Expand Up @@ -213,7 +213,7 @@
"tip": "git branch -m <new-branch-name>",
"alternatives": ["git branch -m [<old-branch-name>] <new-branch-name>"]
}, {
"title": "Rebases 'feature' to 'master' and merges it in to master ",
"title": "Rebases 'feature' to 'master' and merges it in to master",
"tip": "git rebase master feature && git checkout master && git merge -"
}, {
"title": "Archive the `master` branch",
Expand All @@ -222,11 +222,11 @@
"title": "Modify previous commit without modifying the commit message",
"tip": "git add --all && git commit --amend --no-edit"
}, {
"title": "Prunes references to remove branches that have been deleted in the remote.",
"title": "Prunes references to remove branches that have been deleted in the remote",
"tip": "git fetch -p",
"alternatives": ["git remote prune origin"]
}, {
"title": "Delete local branches that has been squash and merged in the remote.",
"title": "Delete local branches that has been squash and merged in the remote",
"tip": "git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D"
}, {
"title": "Retrieve the commit hash of the initial revision.",
Expand Down Expand Up @@ -417,7 +417,7 @@
"tip": "git log --oneline master..<branch-name> | tail -1",
"alternatives": ["git log --reverse master..<branch-name> | head -6"]
}, {
"title": "Unstaging Staged file",
"title": "Unstage Staged file",
"tip": "git reset HEAD <file-name>"
}, {
"title": "Force push to Remote Repository",
Expand Down Expand Up @@ -523,7 +523,7 @@
"title": "Change a branch base",
"tip": "git rebase --onto <new_base> <old_base>"
}, {
"title": "Use SSH instead of HTTPs for remotes",
"title": "Use SSH instead of HTTPS for remotes",
"tip": "git config --global url.'[email protected]:'.insteadOf 'https://github.com/'"
}, {
"title": "Update a submodule to the latest commit",
Expand Down