sagemath / trac-to-github

Script to migrate Trac tickets to GitHub issues and the Trac wiki to markdown. Input: https://trac.sagemath.org/ ➠ Intermediate: https://github.com/sagemath/trac_to_gh ➠ Output: https://github.com/sagemath/sage/issues
https://trac.sagemath.org/ticket/30363
7 stars 5 forks source link

Migration guide: Track correct develop branch #186

Open tobiasdiez opened 1 year ago

tobiasdiez commented 1 year ago

If you have an existing clone of the sage repo that is still connected to the trac git repo, one needs to change it to track the new github repo. I think this should be something like

$ git fetch upstream
$ git branch -u upstream/develop develop
$ git remote set-head upstream -a

(or replace upstream by origin if you want to track the develop branch of your fork for some reason)

kwankyu commented 1 year ago

I used git branch -D develop; git branch --track develop upstream/develop, but yours look simpler.