0

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 
5
  • 1
    github.com/username/repo use like this Commented Feb 17, 2016 at 6:47
  • already tried that one too.. Commented Feb 17, 2016 at 6:49
  • github.com/cynerellc/pdfactionresult Commented Feb 17, 2016 at 6:59
  • 1
    @MuhammadNoman very funny.. Commented Feb 17, 2016 at 7:03
  • 1
    Can you paste the complete URL here ? Seems like the way URL mentioned could be wrong. Commented Feb 17, 2016 at 7:04

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

1 Comment

Isn't that [your_user_name] should be [username_of_person_owning_the_repo] ? Ex: If you are owning the project and if I am pushing the changes, username would be yours and not mine.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.