简体   繁体   中英

Git remote: Repository not found

I tried to run git branch and i saw this

-hrisapi //当前分支 -main

and when i tried to pull i used this command git pull origin hrisapi and i get this error

remote: Repository not found. fatal: repository

'https://github.com/Student Hris/school-api.git/' not found

I just want to pull my updates on hrisapi,

this is my access, I dont know what should i checked here

在此处输入图像描述

You have to add remote to the local. Now it required ssh, so the ssh link must added.

git remote set-url origin git@github.com:MyRepo/project.git

then you can pull or push your changes.

git add .
git commit -m "initial commit"
git push origin master

Answer refrence

First check git remote. using-

git remote -v

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM