1
0
mirror of https://github.com/namibia/tips.git synced 2024-05-29 16:31:08 +00:00

Merge pull request #115 from nirajpandkar/master

Capitalized the first letter of certain words
This commit is contained in:
hemanth.hm 2016-08-06 20:02:21 +05:30 committed by GitHub
commit 7b4bcd1727
2 changed files with 22 additions and 22 deletions

View File

@ -63,7 +63,7 @@ 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 remote branches that have been deleted in the remote.](#prunes-references-to-remote-branches-that-have-been-deleted-in-the-remote) * [Prunes references to remote branches that have been deleted in the remote.](#prunes-references-to-remote-branches-that-have-been-deleted-in-the-remote)
@ -94,13 +94,13 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Check if the change was a part of a release.](#check-if-the-change-was-a-part-of-a-release) * [Check if the change was a part of a release.](#check-if-the-change-was-a-part-of-a-release)
* [Dry run. (any command that supports dry-run flag should do.)](#dry-run-any-command-that-supports-dry-run-flag-should-do) * [Dry run. (any command that supports dry-run flag should do.)](#dry-run-any-command-that-supports-dry-run-flag-should-do)
* [Marks your commit as a fix of a previous commit.](#marks-your-commit-as-a-fix-of-a-previous-commit) * [Marks your commit as a fix of a previous commit.](#marks-your-commit-as-a-fix-of-a-previous-commit)
* [squash fixup commits normal commits.](#squash-fixup-commits-normal-commits) * [Squash fixup commits normal commits.](#squash-fixup-commits-normal-commits)
* [skip staging area during commit.](#skip-staging-area-during-commit) * [Skip staging area during commit.](#skip-staging-area-during-commit)
* [Interactive staging.](#interactive-staging) * [Interactive staging.](#interactive-staging)
* [List ignored files.](#list-ignored-files) * [List ignored files.](#list-ignored-files)
* [Status of ignored files.](#status-of-ignored-files) * [Status of ignored files.](#status-of-ignored-files)
* [Commits in Branch1 that are not in Branch2](#commits-in-branch1-that-are-not-in-branch2) * [Commits in Branch1 that are not in Branch2](#commits-in-branch1-that-are-not-in-branch2)
* [reuse recorded resolution, record and reuse previous conflicts resolutions.](#reuse-recorded-resolution-record-and-reuse-previous-conflicts-resolutions) * [Reuse recorded resolution, record and reuse previous conflicts resolutions.](#reuse-recorded-resolution-record-and-reuse-previous-conflicts-resolutions)
* [Open all conflicted files in an editor.](#open-all-conflicted-files-in-an-editor) * [Open all conflicted files in an editor.](#open-all-conflicted-files-in-an-editor)
* [Count unpacked number of objects and their disk consumption.](#count-unpacked-number-of-objects-and-their-disk-consumption) * [Count unpacked number of objects and their disk consumption.](#count-unpacked-number-of-objects-and-their-disk-consumption)
* [Prune all unreachable objects from the object database.](#prune-all-unreachable-objects-from-the-object-database) * [Prune all unreachable objects from the object database.](#prune-all-unreachable-objects-from-the-object-database)
@ -119,7 +119,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Create and switch new branch](#create-and-switch-new-branch) * [Create and switch new branch](#create-and-switch-new-branch)
* [Ignore file mode changes on commits](#ignore-file-mode-changes-on-commits) * [Ignore file mode changes on commits](#ignore-file-mode-changes-on-commits)
* [Turn off git colored terminal output](#turn-off-git-colored-terminal-output) * [Turn off git colored terminal output](#turn-off-git-colored-terminal-output)
* [specific color settings](#specific-color-settings) * [Specific color settings](#specific-color-settings)
* [Show all local branches ordered by recent commits](#show-all-local-branches-ordered-by-recent-commits) * [Show all local branches ordered by recent commits](#show-all-local-branches-ordered-by-recent-commits)
* [Find lines matching the pattern (regex or string) in tracked files](#find-lines-matching-the-pattern-regex-or-string-in-tracked-files) * [Find lines matching the pattern (regex or string) in tracked files](#find-lines-matching-the-pattern-regex-or-string-in-tracked-files)
* [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)
@ -355,7 +355,7 @@ git branch --contains <commit-ish>
## Git Aliases ## Git Aliases
```sh ```sh
git config --global alias.<handle> <command> git config --global alias.<handle> <command>
git config --global alias.st status git config --global alias.st status
``` ```
@ -519,7 +519,7 @@ __Alternatives:__
git branch -m [<old-branch-name>] <new-branch-name> 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 ```sh
git checkout feature && git rebase @{-1} && git checkout @{-2} && git merge @{-1} git checkout feature && git rebase @{-1} && git checkout @{-2} && git merge @{-1}
``` ```
@ -708,12 +708,12 @@ git clean -fd --dry-run
git commit --fixup <SHA-1> git commit --fixup <SHA-1>
``` ```
## squash fixup commits normal commits. ## Squash fixup commits normal commits.
```sh ```sh
git rebase -i --autosquash git rebase -i --autosquash
``` ```
## skip staging area during commit. ## Skip staging area during commit.
```sh ```sh
git commit --only <file_path> git commit --only <file_path>
``` ```
@ -738,7 +738,7 @@ git status --ignored
git log Branch1 ^Branch2 git log Branch1 ^Branch2
``` ```
## reuse recorded resolution, record and reuse previous conflicts resolutions. ## Reuse recorded resolution, record and reuse previous conflicts resolutions.
```sh ```sh
git config --global rerere.enabled 1 git config --global rerere.enabled 1
``` ```
@ -800,12 +800,12 @@ git checkout master && git branch --no-merged
## Find guilty with binary search ## Find guilty with binary search
```sh ```sh
git bisect start # Search start git bisect start # Search start
git bisect bad # Set point to bad commit git bisect bad # Set point to bad commit
git bisect good v2.6.13-rc2 # Set point to good commit|tag git bisect good v2.6.13-rc2 # Set point to good commit|tag
git bisect bad # Say current state is bad git bisect bad # Say current state is bad
git bisect good # Say current state is good git bisect good # Say current state is good
git bisect reset # Finish search git bisect reset # Finish search
``` ```
@ -845,7 +845,7 @@ git config core.fileMode false
git config --global color.ui false git config --global color.ui false
``` ```
## specific color settings ## Specific color settings
```sh ```sh
git config --global <specific command e.g branch, diff> <true, false or always> git config --global <specific command e.g branch, diff> <true, false or always>
``` ```

View File

@ -183,7 +183,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 checkout feature && git rebase @{-1} && git checkout @{-2} && git merge @{-1}" "tip": "git checkout feature && git rebase @{-1} && git checkout @{-2} && git merge @{-1}"
}, { }, {
"title": "Archive the `master` branch", "title": "Archive the `master` branch",
@ -281,10 +281,10 @@
"title": "Marks your commit as a fix of a previous commit.", "title": "Marks your commit as a fix of a previous commit.",
"tip": "git commit --fixup <SHA-1>" "tip": "git commit --fixup <SHA-1>"
}, { }, {
"title": "squash fixup commits normal commits.", "title": "Squash fixup commits normal commits.",
"tip": "git rebase -i --autosquash" "tip": "git rebase -i --autosquash"
}, { }, {
"title": "skip staging area during commit.", "title": "Skip staging area during commit.",
"tip": "git commit --only <file_path>" "tip": "git commit --only <file_path>"
}, { }, {
"title": "Interactive staging.", "title": "Interactive staging.",
@ -299,7 +299,7 @@
"title": "Commits in Branch1 that are not in Branch2", "title": "Commits in Branch1 that are not in Branch2",
"tip": "git log Branch1 ^Branch2" "tip": "git log Branch1 ^Branch2"
}, { }, {
"title": "reuse recorded resolution, record and reuse previous conflicts resolutions.", "title": "Reuse recorded resolution, record and reuse previous conflicts resolutions.",
"tip": "git config --global rerere.enabled 1" "tip": "git config --global rerere.enabled 1"
}, { }, {
"title": "Open all conflicted files in an editor.", "title": "Open all conflicted files in an editor.",
@ -357,7 +357,7 @@
"title": "Turn off git colored terminal output", "title": "Turn off git colored terminal output",
"tip": "git config --global color.ui false" "tip": "git config --global color.ui false"
},{ },{
"title": "specific color settings", "title": "Specific color settings",
"tip": "git config --global <specific command e.g branch, diff> <true, false or always>" "tip": "git config --global <specific command e.g branch, diff> <true, false or always>"
},{ },{
"title": "Show all local branches ordered by recent commits", "title": "Show all local branches ordered by recent commits",