You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The term master is out of favor in the computing world and beyond. Let's use the new standard and replace our trunk from "master" branch to "main" branch.
Details
The computer industry's use of the terms master and slave caught everyone's attention in the summer of 2020. Amid the many protests and the growing social unrest, these harmful and antiquated terms were no longer considered appropriate.
"Both Conservancy and the Git project are aware that the initial branch name, 'master,' is offensive to some people and we empathize with those hurt by the use of that term," said the Software Freedom Conservancy.
Steps
Git commands:
# Connect local repo with your remote repo
git remote add origin <remote_github_url>
# Pull the main source code
git pull origin main
# Move the source from master to main branch
git branch -m master main
# Add and commit your changes
git add .
git commit -m "master branch changed to main"
# Set upstream and push changes to remote
git push --set-upstream origin main
GitHub configuration:
Change Default branch in project's settings
The text was updated successfully, but these errors were encountered:
Short description
The term master is out of favor in the computing world and beyond. Let's use the new standard and replace our trunk from "master" branch to "main" branch.
Details
The computer industry's use of the terms master and slave caught everyone's attention in the summer of 2020. Amid the many protests and the growing social unrest, these harmful and antiquated terms were no longer considered appropriate.
Link: https://sfconservancy.org/news/2020/jun/23/gitbranchname/
"Both Conservancy and the Git project are aware that the initial branch name, 'master,' is offensive to some people and we empathize with those hurt by the use of that term," said the Software Freedom Conservancy.
Steps
Git commands:
GitHub configuration:
The text was updated successfully, but these errors were encountered: