mirror of
https://github.com/namibia/tips.git
synced 2025-01-24 07:38:35 +00:00
Merge pull request #73 from David-Wobrock/master
Formatting tabs into spaces and adding tip of tracing changes to one file
This commit is contained in:
commit
7ed587483e
@ -107,6 +107,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
|
|||||||
* [List all branch is WIP](#list-all-branch-is-wip)
|
* [List all branch is WIP](#list-all-branch-is-wip)
|
||||||
* [Find guilty with binary search](#find-guilty-with-binary-search)
|
* [Find guilty with binary search](#find-guilty-with-binary-search)
|
||||||
* [Bypass pre-commit and commit-msg githooks](#bypass-pre-commit-and-commit-msg-githooks)
|
* [Bypass pre-commit and commit-msg githooks](#bypass-pre-commit-and-commit-msg-githooks)
|
||||||
|
* [List commits and changes to a specific file (even through renaming)](#list-commits-and-changes-to-a-specific-file-even-through-renaming)
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end toc -->
|
<!-- @doxie.inject end toc -->
|
||||||
@ -706,7 +707,6 @@ 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
|
||||||
@ -714,6 +714,7 @@ 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
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Bypass pre-commit and commit-msg githooks
|
## Bypass pre-commit and commit-msg githooks
|
||||||
@ -721,5 +722,10 @@ git bisect reset # Finish search
|
|||||||
git commit --no-verify
|
git commit --no-verify
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## List commits and changes to a specific file (even through renaming)
|
||||||
|
```sh
|
||||||
|
git log --follow -p -- <file_path>
|
||||||
|
```
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end -->
|
<!-- @doxie.inject end -->
|
||||||
|
@ -317,8 +317,10 @@
|
|||||||
}, {
|
}, {
|
||||||
"title": "Find guilty with binary search",
|
"title": "Find guilty with binary search",
|
||||||
"tip": "git bisect start # Search start \ngit bisect bad # Set point to bad commit \ngit bisect good v2.6.13-rc2 # Set point to good commit|tag \ngit bisect bad # Say current state is bad \ngit bisect good # Say current state is good \ngit bisect reset # Finish search \n"
|
"tip": "git bisect start # Search start \ngit bisect bad # Set point to bad commit \ngit bisect good v2.6.13-rc2 # Set point to good commit|tag \ngit bisect bad # Say current state is bad \ngit bisect good # Say current state is good \ngit bisect reset # Finish search \n"
|
||||||
},
|
}, {
|
||||||
{
|
|
||||||
"title": "Bypass pre-commit and commit-msg githooks",
|
"title": "Bypass pre-commit and commit-msg githooks",
|
||||||
"tip": "git commit --no-verify"
|
"tip": "git commit --no-verify"
|
||||||
|
}, {
|
||||||
|
"title": "List commits and changes to a specific file (even through renaming)",
|
||||||
|
"tip": "git log --follow -p -- <file_path>"
|
||||||
}]
|
}]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user