Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the fatal:remote error:You can't push to git://github.com/username/*.git problem

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the relevant knowledge of "fatal:remote error:You can't push to git://github.com/username/<$. git problem how to solve". The editor shows you the operation process through actual cases. The operation method is simple, fast and practical. I hope this article "fatal:remote error:You can't push to git://github.com/username/<$. git problem how to solve" can help you solve the problem.

Today's Git Push

fatal:remote error:

You can't push to git://github.com/username/*.git

Use git@github.com:username/*.git

It looks like you don't have permission to push.

Solution:

git remote rm origin

git remote add origin git@github.com:username/resname.git

Then you can push.

This problem is usually caused by the protocol chosen at clone time. If you use git://github.com/userna/userrepository.git. Read permission only, not write. It cannot be pushed.

You need ssh protocol to push, so clone uses git@github.com:username/userrepository.git

You must also create an SSH Key. And fill in the public key to the user's information in GitHub.

Fatal:remote error:You can't push to git://github.com/username/<$. git How to solve the problem "is introduced here. Thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the industry information channel. Xiaobian will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report