Reputation: 3386
Uh, I created a new repo in git in a a folder with a bunch of prewritten source, but now when I try to push it there is no 'master'. help.
Upvotes: 1
Views: 484
Reputation: 108101
Have you done your initial commit?
git add .
git commit -m "Initial commit"
git push -u origin master
Upvotes: 1
Reputation: 33348
You need to commit the contents of the directory to create an initial commit:
git add .
git commit -m 'Initial commit.'
Otherwise there's nothing for Git to push.
Upvotes: 3