It would appear that you have experimented with the new (2.28) init.defaultBranch
configuration value.
Assign it a proper value:
git config --global init.defaultBranch main
Related Contents:
- Link to the issue number on GitHub within a commit message
- Are Git forks actually Git clones?
- Make the current commit the only (initial) commit in a Git repository?
- Renaming a branch in GitHub
- How can I keep my fork in sync without adding a separate remote?
- How to remove file from Git history?
- When to delete branches in Git?
- Why does git revert complain about a missing -m option?
- How do you fork your own repository on GitHub?
- How do I add an existing Solution to GitHub from Visual Studio 2013
- Git Clone from GitHub over https with two-factor authentication
- GitHub – List commits by author
- How can I have linked dependencies in a git repo?
- How do I fetch a branch on someone else’s fork on GitHub? [duplicate]
- How do I fix “remote: fatal error in commit_refs” errors trying to push with Git?
- How can I diff two branches in GitHub?
- Git Clone – Repository not found
- git – how to get default branch?
- Can I share my private GitHub repository by link?
- How to avoid merge-commit hell on GitHub/BitBucket
- Git pulling a branch from another repository?
- How to rollback the two previous commits?
- How to disable osxkeychain as credential helper in git config?
- Squash all my commits into one for GitHub pull request [duplicate]
- Can I edit two files then make one commit using GitHub Web-based editor?
- Going back to a previous commit in Github Desktop
- Can’t remove file from git commit
- Push to origin from GitHub action
- git tag delete and re-add
- SourceTree error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
- How do I reverse a commit in git?
- Mirroring from GitLab to GitHub
- What is the difference between Git Bash and the GitHub for Windows shell?
- .gitignore only on local
- How do I connect to my existing Git repository using Visual Studio Code?
- How to ‘Watch’ only a directory in a GitHub repository?
- What exactly is a Release in GitHub?
- Why do some repository URLs end in .git while others don’t?
- git push error: src refspec main does not match any on linux
- Push branches to Git
- Fast-forward merge is not possible. To merge this request, first rebase locally
- Remove a file from a Git Pull Request
- In Git how can you check which repo in Github you are pushing to from the command line?
- Git Remove unwanted commits from a Pull Request
- git status (nothing to commit, working directory clean), however with changes commited
- Proper way to use Gitflow with pull requests
- How can I Git clone a specific release?
- Troubleshooting git push – it asks for a user/pass
- Can I mark a GIT remote as read only? [duplicate]
- Change connected commit on release github