Git上傳Tag 記一次異常

1. 本地創建Tag並上傳Git時出現異常

git tag <tabName>
git push <remoteName> <tabName>

2. 異常

fatal: 'master' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

3. 解決方式

  1. 查看遠程倉庫綁定列表 git remote -v
origin  http://xxx/sfa-xxx/sfa-xxx.git (fetch)
origin  http://xxx/sfa-xxx/sfa-xxx.git (push)
  1. 如果遠程倉庫綁定列表顯示正確,那就是push tag的時候<remoteName>寫錯了
git push origin <tabName>
  1. 如果remote列表爲空, 重新關聯遠程庫 git remote add origin111 <url>
git push origin111 <tabName>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章