mirror of
https://github.com/git-tips/tips.git
synced 2024-09-21 00:01:03 +02:00
Tips using git cherry-pick
This commit is contained in:
parent
885357aa83
commit
7ecc00c50b
|
@ -22,6 +22,7 @@
|
||||||
* [Stage parts of a changed file, instead of the entire file](https://github.com/git-tips/tips#stage-parts-of-a-changed-file-instead-of-the-entire-file)
|
* [Stage parts of a changed file, instead of the entire file](https://github.com/git-tips/tips#stage-parts-of-a-changed-file-instead-of-the-entire-file)
|
||||||
* [Get git bash completion](https://github.com/git-tips/tips#get-git-bash-completion)
|
* [Get git bash completion](https://github.com/git-tips/tips#get-git-bash-completion)
|
||||||
* [What changed since two weeks?](https://github.com/git-tips/tips#what-changed-since-two-weeks)
|
* [What changed since two weeks?](https://github.com/git-tips/tips#what-changed-since-two-weeks)
|
||||||
|
* [Pick commits across branches using cherry-pick](https://github.com/git-tips/tips#pick-commits-across-branches-using-cherry-pick)
|
||||||
|
|
||||||
<!-- 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 -->
|
||||||
|
@ -130,5 +131,10 @@ curl http://git.io/vfhol > ~/.git-completion.bash && echo '[ -f ~/.git-completio
|
||||||
git whatchanged --since='2 weeks ago'
|
git whatchanged --since='2 weeks ago'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Pick commits across branches using cherry-pick
|
||||||
|
```sh
|
||||||
|
git checkout <branch-name> && cherry-pick <commit-ish>
|
||||||
|
```
|
||||||
|
|
||||||
<!-- 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 -->
|
||||||
|
|
|
@ -75,5 +75,9 @@
|
||||||
{
|
{
|
||||||
"title": "What changed since two weeks?",
|
"title": "What changed since two weeks?",
|
||||||
"tip": "git whatchanged --since='2 weeks ago'"
|
"tip": "git whatchanged --since='2 weeks ago'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Pick commits across branches using cherry-pick",
|
||||||
|
"tip": "git checkout <branch-name> && cherry-pick <commit-ish>"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user