git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git pull --rebase and --reset-author-date

From
RARicardo 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

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “Git pull --rebase and --reset-author-date”
  1. Ricardo AlmeidaDec 11, 2024
  2. Junio C HamanoDec 12, 2024
  3. Ricardo AlmeidaDec 12, 2024
  4. Junio C HamanoDec 13, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.