Fossil User Forum

branch renaming?
Login

branch renaming?

branch renaming?

(1) By Alfred M. Szmidt (ams) on 2021-08-31 12:53:38 [link] [source]

How does one rename branches?  I tried searching the documentation, but didn't really find anything.  Might have missed something...

(2) By Richard Hipp (drh) on 2021-08-31 13:09:36 in reply to 1 [link] [source]

In the web UI:

  • Go to the /info page for the first check-in of the branch.
  • Click the "edit" link (to the right of "Other Links:").
  • Click the "Make this check-in the start of a new branch named:" checkbox and fill in the new branch name.
  • Click "Preview"
  • Click "Apply Changes"

(3) By Andy Bradford (andybradford) on 2021-09-01 02:41:21 in reply to 1 [source]

> How does one rename branches?

There are 2 ways (well 4 really but I'll leave low-level methods out for
now). One is with the Fossil UI (as Richard mentioned). The other common
way is from the command-line using the "fossil amend" command:

https://www.fossil-scm.org/home/help/amend

As with the UI, you need to  pick the point in the branch timeline where
you want to  rename it (typically that's the first  commit in the branch
if you want to rename the entire branch and not just a portion of it).

fossil amend deadbeef --branch newname

Andy

(4) By Alfred M. Szmidt (ams) on 2021-09-01 11:48:12 in reply to 1 [link] [source]

Thank you both!  Would it make sense to have a link to the "start" of a branch on the branch page?  Seems that often these commands require to bit sitting there.