Re: [git-users] Why can't I push to a newly created repository?

2017-10-31 Thread yuelinho777
Martin於 2017年10月31日星期二 UTC+8下午2時43分18秒寫道: > > I did init --bare, so that won't be a problem. > These two commands may be helpful for figuring out the issue? > On git repository server machine: > > $ git log master > fatal: ambiguous argument 'master': unknown revision or path not in the >

Re: [git-users] Why can't I push to a newly created repository?

2017-10-31 Thread Martin
I did init --bare, so that won't be a problem. These two commands may be helpful for figuring out the issue? On git repository server machine: $ git log master fatal: ambiguous argument 'master': unknown revision or path not in the working tree. Use '--' to separate paths from revisions,

Re: [git-users] Why can't I push to a newly created repository?

2017-10-30 Thread Yubin Ruan
On 10/31/2017 02:56 AM, Timothy Rice wrote: >> It is possible to push to a NON checked out branch of a non-bare repo (that >> was apparently what they did in the old days before I knew Git). >> >> I use that method at work, so that I have a network share that is the >> non-bare 'remote', and I

Re: [git-users] Why can't I push to a newly created repository?

2017-10-30 Thread Timothy Rice
> It is possible to push to a NON checked out branch of a non-bare repo (that > was apparently what they did in the old days before I knew Git). > > I use that method at work, so that I have a network share that is the > non-bare 'remote', and I have a local drive repo that I'm working on. The >

Re: [git-users] Why can't I push to a newly created repository?

2017-10-30 Thread Konstantin Khomoutov
On Mon, Oct 30, 2017 at 12:07:23AM -0700, Martin wrote: > I created a repository on a home server. I can ssh to the server without > any issue. I can also 'git clone' the empty repository from another home > computer and everything works fine. > > I then tried a simple "git add, git commit".

Re: [git-users] Why can't I push to a newly created repository?

2017-10-30 Thread Philip Oakley
- Original Message - From: "Timothy Rice" I can't reproduce the problem precisely, but I'm guessing you did not set up "origin" to be a *bare* repo. You can't push to regular repos. Distributing changes between regular repos requires a strict

Re: [git-users] Why can't I push to a newly created repository?

2017-10-30 Thread Timothy Rice
Hi, I can't reproduce the problem precisely, but I'm guessing you did not set up "origin" to be a *bare* repo. You can't push to regular repos. Distributing changes between regular repos requires a strict fork-and-pull workflow, although cloning is also permitted. To set up a repo that you want

[git-users] Why can't I push to a newly created repository?

2017-10-30 Thread Martin
Hi, All: I created a repository on a home server. I can ssh to the server without any issue. I can also 'git clone' the empty repository from another home computer and everything works fine. I then tried a simple "git add, git commit". No issue! However, when I do 'git push origin master',