amber-smalltalk / amber-website

Amber's website (http://amber-lang.net)
2 stars 3 forks source link

Delete master branch #23

Closed hhzl closed 9 years ago

hhzl commented 9 years ago

Suggestion by Bert Freudenberg on the ML.

The branch used in this repository is the gh-pages branch. The master branch has not been updated for a long time. Having the master branch around is not necessary.

Choose default branch

choosing-the-github-default-branch

Delete master branch

delete-master-branch

hhzl commented 9 years ago

gh-pages set as default branch

hhzl commented 9 years ago

@philippeback , @tomrake Any objections if I delete the master branch. We do not need it.

tomrake commented 9 years ago

I have examined the repository and branches in its current state today. Removing the master branch is unusual which is why I am going into this level of analysis.

  1. The current master branch is OLD - last commit was on November 11, 2013, gh-pages branch has been currently updated.
  2. The current master branch has FEWER COMMITS, only 6 while the gh-pages branch has perhaps 20 commits or more.
  3. The current master does NOT HAVE a CNAME file to redirect the domain, the gh-pages branch has that.
  4. The website is being hosted as a "project site" from amber-website. A "Project Site" and is hosted from the gh-pages branch. The possible alternative we have is to host an "Organization site" to host such a site we would need a repo named amber-smalltalk.github.io, in this case master will be served for a website, we have no such repo.

The master branch is OLD, has FEWER COMMITS, HAS NO DOMAIN related records and is not being served. The master branch can be removed or deleted without affecting the live pages of the website.

mkroehnert commented 9 years ago

No objections from my side. The gh-pages is the only branch used to create the website.

One possible alternative would be to make GitHub use the master branch instead of gh-pages, merge everything from gh-pages into master and then remove the gh-pages branch. But I don't see any advantage of doing so.

hhzl commented 9 years ago

@tomrake , @mkroehnert Thank you for this careful analysis and the confirmation that the master branch may indeed be deleted. It will make it easier for people to contribute to the web site development.

Now: where is the button to actually delete the master branch. I thought it was under settings but I did not see it there.

ghost commented 9 years ago

Probably no button. Must clone and git-fu (git push origin :master IIRC).

Hannes Hirzel wrote:

@tomrake https://github.com/tomrake , @mkroehnert https://github.com/mkroehnert Thank you for this careful analysis and the confirmation that the master branch may indeed be deleted. It will make it easier for people to contribute to the web site development.

Now: where is the button to actually delete the master branch. I thought it was under |settings| but I did not see it there.

— Reply to this email directly or view it on GitHub https://github.com/amber-smalltalk/amber-website/issues/23#issuecomment-75391598.

mkroehnert commented 9 years ago

@hhzl one of the Google results for "Github delete branch" leads to this GH help page (see bottom for deleting branches): https://help.github.com/articles/viewing-branches-in-your-repository/

hhzl commented 9 years ago

@mkroehnert thank you

amber-website-delete-master_2015-02-22

DELETED master branch

Restore option is available amber-web-site-restore-branch-option-2015-02-22