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
>
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,
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
> 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
>
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".
- 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
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
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',