当初始化一个github项目的时候

按照github提示执行到

git branch -M main

 

返回错误:

error: refname refs/heads/master not found

 

解决:

git add .

git commit -m "init"

 

然后在执行

git branch -M main

相关文章:

  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2021-04-09
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-17
  • 2021-10-08
  • 2022-01-18
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
相关资源
相似解决方案