Fix inconsistent punctuation and typos

This commit is contained in:
Edwin Kofler 2023-10-17 04:44:54 -07:00
parent 1c23d34fbb
commit 320634bb78
No known key found for this signature in database
GPG Key ID: A1E60C1F1A423B08
2 changed files with 22 additions and 22 deletions

View File

@ -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) * [Create local tag](#create-local-tag)
* [Delete local tag](#delete-local-tag) * [Delete local tag](#delete-local-tag)
* [Delete remote tag](#delete-remote-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) * [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) * [Reset: Discard commits, advised for private branch](#reset-discard-commits-advised-for-private-branch)
* [Reword the previous commit message](#reword-the-previous-commit-message) * [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) * [See commit history for just the current branch](#see-commit-history-for-just-the-current-branch)
* [Amend author.](#amend-author) * [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) * [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) * [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 remote references](#get-list-of-all-remote-references)
* [Get list of all local and remote branches](#get-list-of-all-local-and-remote-branches) * [Get list of all local and remote branches](#get-list-of-all-local-and-remote-branches)
@ -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) * [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) * [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) * [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) * [Archive the `master` branch](#archive-the-master-branch)
* [Modify previous commit without modifying the commit message](#modify-previous-commit-without-modifying-the-commit-message) * [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) * [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) * [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) * [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 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) * [Visualize the tree including commits that are only referenced from reflogs](#visualize-the-tree-including-commits-that-are-only-referenced-from-reflogs)
@ -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) * [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) * [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) * [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) * [Force push to Remote Repository](#force-push-to-remote-repository)
* [Adding Remote name](#adding-remote-name) * [Adding Remote name](#adding-remote-name)
* [List all currently configured remotes](#list-all-currently-configured-remotes) * [List all currently configured remotes](#list-all-currently-configured-remotes)
@ -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 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) * [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) * [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) * [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) * [Prevent auto replacing LF with CRLF](#prevent-auto-replacing-lf-with-crlf)
@ -359,12 +359,12 @@ git commit -v --amend
git cherry -v master git cherry -v master
``` ```
## Amend author. ## Amend author
```sh ```sh
git commit --amend --author='Author Name <email@address.com>' git commit --amend --author='Author Name <email@address.com>'
``` ```
## Reset author, after author has been changed in the global config. ## Reset author, after author has been changed in the global config
```sh ```sh
git commit --amend --reset-author --no-edit git commit --amend --reset-author --no-edit
``` ```
@ -665,7 +665,7 @@ git archive master --format=zip --output=master.zip
git add --all && git commit --amend --no-edit 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 ```sh
git fetch -p git fetch -p
``` ```
@ -676,7 +676,7 @@ __Alternatives:__
git remote prune origin 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 ```sh
git branch -vv | grep ': gone]' | awk '{print <!-- @doxie.inject start -->}' | xargs git branch -D git branch -vv | grep ': gone]' | awk '{print <!-- @doxie.inject start -->}' | xargs git branch -D
``` ```
@ -1049,7 +1049,7 @@ __Alternatives:__
git log --reverse master..<branch-name> | head -6 git log --reverse master..<branch-name> | head -6
``` ```
## Unstaging Staged file ## Unstage Staged file
```sh ```sh
git reset HEAD <file-name> git reset HEAD <file-name>
``` ```
@ -1245,7 +1245,7 @@ git push -u origin <branch_name>
git rebase --onto <new_base> <old_base> git rebase --onto <new_base> <old_base>
``` ```
## Use SSH instead of HTTPs for remotes ## Use SSH instead of HTTPS for remotes
```sh ```sh
git config --global url.'git@github.com:'.insteadOf 'https://github.com/' git config --global url.'git@github.com:'.insteadOf 'https://github.com/'
``` ```

View File

@ -90,10 +90,10 @@
"title": "See commit history for just the current branch", "title": "See commit history for just the current branch",
"tip": "git cherry -v master" "tip": "git cherry -v master"
}, { }, {
"title": "Amend author.", "title": "Amend author",
"tip": "git commit --amend --author='Author Name <email@address.com>'" "tip": "git commit --amend --author='Author Name <email@address.com>'"
}, { }, {
"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" "tip": "git commit --amend --reset-author --no-edit"
}, { }, {
"title": "Changing a remote's URL", "title": "Changing a remote's URL",
@ -213,7 +213,7 @@
"tip": "git branch -m <new-branch-name>", "tip": "git branch -m <new-branch-name>",
"alternatives": ["git branch -m [<old-branch-name>] <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 -" "tip": "git rebase master feature && git checkout master && git merge -"
}, { }, {
"title": "Archive the `master` branch", "title": "Archive the `master` branch",
@ -222,11 +222,11 @@
"title": "Modify previous commit without modifying the commit message", "title": "Modify previous commit without modifying the commit message",
"tip": "git add --all && git commit --amend --no-edit" "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", "tip": "git fetch -p",
"alternatives": ["git remote prune origin"] "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" "tip": "git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D"
}, { }, {
"title": "Retrieve the commit hash of the initial revision.", "title": "Retrieve the commit hash of the initial revision.",
@ -417,7 +417,7 @@
"tip": "git log --oneline master..<branch-name> | tail -1", "tip": "git log --oneline master..<branch-name> | tail -1",
"alternatives": ["git log --reverse master..<branch-name> | head -6"] "alternatives": ["git log --reverse master..<branch-name> | head -6"]
}, { }, {
"title": "Unstaging Staged file", "title": "Unstage Staged file",
"tip": "git reset HEAD <file-name>" "tip": "git reset HEAD <file-name>"
}, { }, {
"title": "Force push to Remote Repository", "title": "Force push to Remote Repository",
@ -523,7 +523,7 @@
"title": "Change a branch base", "title": "Change a branch base",
"tip": "git rebase --onto <new_base> <old_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.'git@github.com:'.insteadOf 'https://github.com/'" "tip": "git config --global url.'git@github.com:'.insteadOf 'https://github.com/'"
}, { }, {
"title": "Update a submodule to the latest commit", "title": "Update a submodule to the latest commit",