I am getting an error " fatal: unable to access ' https://github.com/link:username/repo.git/ ': The requested URL returned error: 400 " while I try to push some new files to repository. But I can do push on existing files which I pulled from the repository earlier. The problem is with the new files. I am using 'ubuntu 14.04 LTS' and my my commands on terminal are as follows:-
git init
git add .
git commit -m "made some changes"
git remote add origin https://github.com/link:username/repo.git
git push -u origin master
Did you checked --set-upstream option ? And why is link:username
in url? AFAIK urls on github are like https://github.com/[your_user_name]/[repo].git
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.