[git-users] Error on push repository

2015-04-07 Thread michel martins
Hi people,

I'm trying push a git repository and it's showing me a error:

refusing to update checked out branch: refs/heads/master
by default, updating the current branch in a non-bare repository is denied
, because it will make the index and work tree inconsistent with what you 
pushed, and will require 'git reset --hard' to match

I'm beginner in the git, and i'm having difficulty in this question. Can 
anybody help me? =)

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Error on push repository

2015-04-07 Thread michel martins
No, it's not. I solved the problem:

git init --bare

and the repo's name isn't 'origin'. But is this other question.

Thanks, Magnus!

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.