AlphaModder
AlphaModder

Reputation: 3386

Git master missing

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

Answers (2)

Gabriele Petronella
Gabriele Petronella

Reputation: 108101

Have you done your initial commit?

git add .
git commit -m "Initial commit"
git push -u origin master

Upvotes: 1

Will Vousden
Will Vousden

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

Related Questions