When initializing a github project
Follow the github prompts to execute
git branch -M main
Returns error:
error: refname refs/heads/master not found
solve:
first
git add.
git commit -m “init”
And then execute
git branch -M main
Read More:
- Solve git upload file error [rejected] master -> master (fetch first) error: failed to push some refs to ‘
- [Solved] Git push error: failed to push some refs to ‘[email protected]:daisy_yangyang/fed-e-task-04-01.git‘
- Git commit – M ‘upload submit times error command “husky run” not found.
- How to Solve gtid master-slave replication connecting Issue
- Push to origin/Master was rejected [How to Solve]
- [Solved] fatal: not a git repository (or any of the parent directories): .git
- Git error bad signature [How to Solve]
- Git-2.16.1.2-64-bit Error: cannot spawn git: Function not implemented
- Git initializes the local existing project
- How to Solve Git clone Error: error: RPC failed; result=35, HTTP code = 0
- Solve the problem of 404 Not Found error in nginx accessing dynamic interface
- How to Solve Linux Error: -bash: unzip: command not found
- [Solved] error: ‘::main’ must return ‘int’ void main()
- [Solved] ERROR: Subproject directory not found and gst-plugins-base.wrap file not found
- How to Solve Error: Driver “kvm2“ not found
- [Solved] Cannot find command ‘git‘ – do you have ‘git‘ installed and in your PATH?
- How to Solve Git Filename too long Error
- AFTER THE GIT SOURCE CODE IS INSTALLED, AN ERROR IS REPORTED /USR/BIN/GIT: NO SUCH FILE OR DIRECTORY
- Initializing the Kubernetes master node ERROR: failed to pull image registry.aliyuncs.com/google_containers/coredns:v1.8.0
- Git error when switching branches: Your local changes to the following files would be overwritten by checkout