0
  • created a folder Homepage3 with 2 subfolders Client & Server
  • ran git init
  • created a repository Homepage3 in github

in my Homepage3 folder ran...

git remote add origin https://github.com/myusername/Homepage3.git
git push -u origin master

error: failed to push some refs to 'https://github.com/myusername/Homepage3.git'

Whats wrong??

monstro
  • 5,117
  • 7
  • 53
  • 94

1 Answers1

0

You have to first clone your repository.

git clone https://username@bitbucket.org/username/Homepage3.git

than move your folder(Homepage3) inside the cloned repository than use 'git add' command to add those folders and than use the commands to puse the updates.

git remote add origin https://github.com/myusername/Homepage3.git
git push -u origin master