git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Absolute Beginner
@ 2010-11-23 12:41 marcos
  2010-11-23 12:45 ` Nguyen Thai Ngoc Duy
  0 siblings, 1 reply; 8+ messages in thread
From: marcos @ 2010-11-23 12:41 UTC (permalink / raw)
  To: git


I'm an absolute beginner with Git. So far I've managed to install, understand
and use Git locally, but am facing many difficulties on using a centralized
repository on a LAN local server. I've followed the instructions on many
places over the web, but none has worked so far. As the development team
grows (we're 5 at this moment), consolidating and synchronizing the files is
becoming almost impossible. Any help will be much appreciated.

TIA,

Marcos Nogueira
S. Paulo - Brazil
-- 
View this message in context: http://git.661346.n2.nabble.com/Absolute-Beginner-tp5766449p5766449.html
Sent from the git mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Absolute Beginner
  2010-11-23 12:41 Absolute Beginner marcos
@ 2010-11-23 12:45 ` Nguyen Thai Ngoc Duy
  2010-11-23 14:16   ` Marcos Nogueira
  2010-11-23 15:24   ` marcos
  0 siblings, 2 replies; 8+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2010-11-23 12:45 UTC (permalink / raw)
  To: marcos; +Cc: git

On Tue, Nov 23, 2010 at 7:41 PM, marcos <marcos@arena.com.br> wrote:
>
> I'm an absolute beginner with Git. So far I've managed to install, understand
> and use Git locally, but am facing many difficulties on using a centralized
> repository on a LAN local server. I've followed the instructions on many
> places over the web, but none has worked so far. As the development team
> grows (we're 5 at this moment), consolidating and synchronizing the files is
> becoming almost impossible. Any help will be much appreciated.

We need to know what difficulties you have. What do you want to
achieve? What instructions have you followed? What commands have you
tried? Any errors from them...
-- 
Duy

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Absolute Beginner
  2010-11-23 12:45 ` Nguyen Thai Ngoc Duy
@ 2010-11-23 14:16   ` Marcos Nogueira
  2010-11-23 15:24   ` marcos
  1 sibling, 0 replies; 8+ messages in thread
From: Marcos Nogueira @ 2010-11-23 14:16 UTC (permalink / raw)
  To: Nguyen Thai Ngoc Duy; +Cc: git

Hello Duy,

Thanks for your reply. Since this is my first visit to this mailing-list, I don't know its etiquette rules yet. Is this the place to get help? Can I post long messages? The whole story of setting up our Git server is quite big... :-)

Anyway, follows below a list of some of the places where I've found the instructions I've mentioned:

http://progit.org/book/ch4-0.html
http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt
http://www.howtoforge.com/how-to-install-a-public-git-repository-on-a-debian-server
http://batterypowered.wordpress.com/2008/07/04/deploying-a-git-repository-server-in-ubuntu/
http://mattrude.com/2009/07/creating-a-secure-git-repository-server/
http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way
http://www.kernel.org/pub/software/scm/git/docs/git-daemon.html
http://gofedora.com/how-to-install-configure-gitweb/

Trying to make it short, the last attempt to push a local project to the server produced the following results:

(...)
marcos@hp-laptop:~/teste_sem_bare$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)

marcos@hp-laptop:~/teste_sem_bare$ ls
teste.txt

marcos@hp-laptop:~/teste_sem_bare$ git push origin master
Counting objects: 5, done.
Writing objects: 100% (3/3), 293 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: error: refusing to update checked out branch: refs/heads/master
remote: error: By default, updating the current branch in a non-bare repository
remote: error: is denied, because it will make the index and work tree inconsistent
remote: error: with what you pushed, and will require 'git reset --hard' to match
remote: error: the work tree to HEAD.
remote: error: 
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into
remote: error: its current branch; however, this is not recommended unless you
remote: error: arranged to update its work tree to match what you pushed in some
remote: error: other way.
remote: error: 
remote: error: To squelch this message and still keep the default behaviour, set
remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
To git@srvpkt:/home/public/teste_sem_bare
 ! [remote rejected] master -> master (branch is currently checked out)
error: failed to push some refs to 'git@srvpkt:/home/public/teste_sem_bare'

marcos@hp-laptop:~/teste_sem_bare$ 
(...)

Thanks again,

Marcos

> On Tue, Nov 23, 2010 at 7:41 PM, marcos <marcos@arena.com.br> wrote:
> >
> > I'm an absolute beginner with Git. So far I've managed to install, understand
> > and use Git locally, but am facing many difficulties on using a centralized
> > repository on a LAN local server. I've followed the instructions on many
> > places over the web, but none has worked so far. As the development team
> > grows (we're 5 at this moment), consolidating and synchronizing the files is
> > becoming almost impossible. Any help will be much appreciated.
> 
> We need to know what difficulties you have. What do you want to
> achieve? What instructions have you followed? What commands have you
> tried? Any errors from them...
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Absolute Beginner
  2010-11-23 12:45 ` Nguyen Thai Ngoc Duy
  2010-11-23 14:16   ` Marcos Nogueira
@ 2010-11-23 15:24   ` marcos
  2010-11-23 15:28     ` Howard Miller
  2010-11-23 15:54     ` Ilari Liusvaara
  1 sibling, 2 replies; 8+ messages in thread
From: marcos @ 2010-11-23 15:24 UTC (permalink / raw)
  To: git


Hello Duy,

I've just replied by email. See below the message sent:

(...)
Thanks for your reply. Since this is my first visit to this mailing-list, I
don't know its etiquette rules yet. Is this the place to get help? Can I
post long messages? The whole story of setting up our Git server is quite
big... :-)

Anyway, follows below a list of some of the places where I've found the
instructions I've mentioned:

http://progit.org/book/ch4-0.html
http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt
http://www.howtoforge.com/how-to-install-a-public-git-repository-on-a-debian-server
http://batterypowered.wordpress.com/2008/07/04/deploying-a-git-repository-server-in-ubuntu/
http://mattrude.com/2009/07/creating-a-secure-git-repository-server/
http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way
http://www.kernel.org/pub/software/scm/git/docs/git-daemon.html
http://gofedora.com/how-to-install-configure-gitweb/

Trying to make it short, the last attempt to push a local project to the
server produced the following results:

marcos@hp-laptop:~/teste_sem_bare$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)

marcos@hp-laptop:~/teste_sem_bare$ ls
teste.txt

marcos@hp-laptop:~/teste_sem_bare$ git push origin master
Counting objects: 5, done.
Writing objects: 100% (3/3), 293 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: error: refusing to update checked out branch: refs/heads/master
remote: error: By default, updating the current branch in a non-bare
repository
remote: error: is denied, because it will make the index and work tree
inconsistent
remote: error: with what you pushed, and will require 'git reset --hard' to
match
remote: error: the work tree to HEAD.
remote: error: 
remote: error: You can set 'receive.denyCurrentBranch' configuration
variable to
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing
into
remote: error: its current branch; however, this is not recommended unless
you
remote: error: arranged to update its work tree to match what you pushed in
some
remote: error: other way.
remote: error: 
remote: error: To squelch this message and still keep the default behaviour,
set
remote: error: 'receive.denyCurrentBranch' configuration variable to
'refuse'.
To git@srvpkt:/home/public/teste_sem_bare
 ! [remote rejected] master -> master (branch is currently checked out)
error: failed to push some refs to 'git@srvpkt:/home/public/teste_sem_bare'

marcos@hp-laptop:~/teste_sem_bare$ 
(...)

Then I received a reply from Howard Miller:

(...)
You are trying to push to a repo that isn't bare. Not impossible but
problematic and you can't do it at all by default (as you have found).

Personally I would look at a central shared repo. You could just get an
account on (something like) GitHub or setup your own (something like
Gitosis).
(...)

>From now on I'll remain here at Nabble regarding this subject.

Thanks again,

Marcos

-- 
View this message in context: http://git.661346.n2.nabble.com/Absolute-Beginner-tp5766449p5766781.html
Sent from the git mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Absolute Beginner
  2010-11-23 15:24   ` marcos
@ 2010-11-23 15:28     ` Howard Miller
  2010-11-23 15:54     ` Ilari Liusvaara
  1 sibling, 0 replies; 8+ messages in thread
From: Howard Miller @ 2010-11-23 15:28 UTC (permalink / raw)
  To: marcos; +Cc: git

> Then I received a reply from Howard Miller:
>
> (...)


Sorry, I forgot to 'plain text' my reply. The list doesn't like that.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Absolute Beginner
  2010-11-23 15:24   ` marcos
  2010-11-23 15:28     ` Howard Miller
@ 2010-11-23 15:54     ` Ilari Liusvaara
  2010-11-23 16:03       ` Howard Miller
  1 sibling, 1 reply; 8+ messages in thread
From: Ilari Liusvaara @ 2010-11-23 15:54 UTC (permalink / raw)
  To: marcos; +Cc: git

On Tue, Nov 23, 2010 at 07:24:28AM -0800, marcos wrote:
> 
> Then I received a reply from Howard Miller:
> 
> (...)
> You are trying to push to a repo that isn't bare. Not impossible but
> problematic and you can't do it at all by default (as you have found).
> 
> Personally I would look at a central shared repo. You could just get an
> account on (something like) GitHub or setup your own (something like
> Gitosis).
> (...)

Don't use Gitosis, it is obsolete. Use Gitolite instead.

-Ilari

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Absolute Beginner
  2010-11-23 15:54     ` Ilari Liusvaara
@ 2010-11-23 16:03       ` Howard Miller
  2010-11-26 18:59         ` marcos
  0 siblings, 1 reply; 8+ messages in thread
From: Howard Miller @ 2010-11-23 16:03 UTC (permalink / raw)
  To: Ilari Liusvaara; +Cc: marcos, git

On 23 November 2010 15:54, Ilari Liusvaara <ilari.liusvaara@elisanet.fi> wrote:
> On Tue, Nov 23, 2010 at 07:24:28AM -0800, marcos wrote:
>>
>> Then I received a reply from Howard Miller:
>>
>> (...)
>> You are trying to push to a repo that isn't bare. Not impossible but
>> problematic and you can't do it at all by default (as you have found).
>>
>> Personally I would look at a central shared repo. You could just get an
>> account on (something like) GitHub or setup your own (something like
>> Gitosis).
>> (...)
>
> Don't use Gitosis, it is obsolete. Use Gitolite instead.
>
> -Ilari

Another job on the TODO list: "migrate Gitosis to Gitolite". Sigh!! :)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Absolute Beginner
  2010-11-23 16:03       ` Howard Miller
@ 2010-11-26 18:59         ` marcos
  0 siblings, 0 replies; 8+ messages in thread
From: marcos @ 2010-11-26 18:59 UTC (permalink / raw)
  To: git


Thanks to the helpful people here and in other forums, I'm not an absolute
beginner anymore: a repository is running fine on our server, and the team
is now learning how to work as a team :-)

One last request regarding this subject: based on your experience with Git,
how many repositories a software (web application) project usually has?
-- 
View this message in context: http://git.661346.n2.nabble.com/Absolute-Beginner-tp5766449p5778209.html
Sent from the git mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-11-26 18:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-23 12:41 Absolute Beginner marcos
2010-11-23 12:45 ` Nguyen Thai Ngoc Duy
2010-11-23 14:16   ` Marcos Nogueira
2010-11-23 15:24   ` marcos
2010-11-23 15:28     ` Howard Miller
2010-11-23 15:54     ` Ilari Liusvaara
2010-11-23 16:03       ` Howard Miller
2010-11-26 18:59         ` marcos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).