Re: Git pull --rebase and --reset-author-date
- From
- Ricardo Almeida <ric.almeida@gmail.com>
- Date
- Dec 12, 2024, 08:25 UTC
- Message-ID
- <CAMKQPDaB2fP-4n9_bw1fjB7JntZ1DWMSpO01h5uuMJ-LzzufdQ@mail.gmail.com>
- In-Reply-To
- <xmqqv7vpfv5g.fsf@gitster.g>
Hi Junio,
> Can't you just use "git fetch && git rebase --..." instead of "pull" > short-hand?
But then it wouldn't update the master branch... When I'm on myBranch and execute "git pull origin --rebase --stat master:master" it does bring the master branch up to date, so, it's equivalent to doing:
git checkout master git pull git checkout myBranch git rebase master
I have an alias for the pull command: "alias.rb=pull origin --rebase --stat master:master", so, it would be handier to just add the --reset-author-date to it but it's not supported atm :(
Regards, Ricardo Almeida