learnlatex / learnlatex.github.io

Learn LaTeX online
https://www.learnlatex.org/
Creative Commons Attribution Share Alike 4.0 International
153 stars 54 forks source link

Renaming the master branch #144

Closed davidcarlisle closed 3 years ago

davidcarlisle commented 3 years ago

In common with many other projects (and following the changed default branch name at github) we plan to rename the "master" branch to "main"

Github will redirect any Pull requests from forks to the master branch but once the rename is done it would be better if any local clones or forks of this repository renamed their branch to "main".

The following commands will rename the local branch and re-set tracking to the github repository main branch. This should be done after the rename here.

git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin main
davidcarlisle commented 3 years ago

Rename done

davidcarlisle commented 3 years ago

Also renamed in the articles repository of this GH organisation

joulev commented 3 years ago

@davidcarlisle Looks like www.learnlatex.org is down again. I am not sure but maybe you forgot to change the branch name in the GH Page settings.

davidcarlisle commented 3 years ago

the github UI changes the gh pages setting when you rename the branch, but you are right the site is gone let me push a change to force a rebuild

davidcarlisle commented 3 years ago

thanks for the heads-up I forced a rebuild and the site is back.

josephwright commented 3 years ago

https://github.community/t/publishing-with-pages-moving-master-to-main/118389/8

davidcarlisle commented 3 years ago

@josephwright that's a bit old, the github interface does now automatically change the setting from master to main to build gh-pages. It just leaves it broken until you next push a change.

josephwright commented 3 years ago

@davidcarlisle Er, but it's still not working ...

davidcarlisle commented 3 years ago

the site is now building from main, closing this issue.