On 16 October 2013 10:35,  <shlo.af...@gmail.com> wrote:
>
>
> I run on the gitserver:
>     git init --bare
>
> then on  my local machine I run:
>     git clone user@gitservre:/path/to/dir/projectd.git
>     cd projectd/
>     touch dd
>     git add dd
>     git commit -m "adding dd"
>     git push
>
> I get the error:
> No refs in common and none specified; doing nothing.
> Perhaps you should specify a branch such as 'master'.
> fatal: The remote end hung up unexpectedly
> error: failed to push some refs to
> 'user@gitservre:/path/to/dir/projectd.git'

That is because git don't know where to push the commits. It may
sounds strange because you probably want to push the commit to the
bare repo. However git can have many remotes and it is _not_ a
client/server arch.

When you don't specify a remote git will use a remote called origin,
so you need to specify your remote origin (default origin) to git like
this:

git remote add origin user@gitservre:/path/to/dir/projectd.git


Regards
Martin

-- 
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/groups/opt_out.

Reply via email to