Re: git rebase backend change: post-checkout hook is not ran by 'merge' backend
- From
Philippe Blain <levraiphilippeblain@gmail.com>
- Date
- Apr 2, 2020, 16:00 UTC
- Message-ID
- <FB0DFFB4-0E6B-4C1E-96AE-9869752BB50B@gmail.com>
- In-Reply-To
- <9945492E-1D97-4741-B999-F30CA561D4DE@gmail.com>
Sorry, the last rebase command is missing:
$ echo "echo \"Running post-checkout hook\"" > .git/hooks/post-checkout $ git checkout -b <branch1> <commit2> $ git rebase upstream/master --apply First, rewinding head to replay your work on top of it... Running post-checkout hook Applying: <commit1> Applying: <commit2> $ git checkout -b <branch2> <commit2> $ git rebase upstream/master --merge Successfully rebased and updated refs/heads/<branch2>
Show 11 quoted lines
> Le 2 avr. 2020 à 11:57, Philippe Blain <levraiphilippeblain@gmail.com> a écrit : > > $ echo "echo \"Running post-checkout hook\"" > .git/hooks/post-checkout > $ git checkout -b <branch1> <commit2> > $ git rebase upstream/master --apply > First, rewinding head to replay your work on top of it... > Running post-checkout hook > Applying: <commit1> > Applying: <commit2> > $ git checkout -b <branch2> <commit2> > Successfully rebased and updated refs/heads/<branch2>