pombreda / gitit

Automatically exported from code.google.com/p/gitit
0 stars 0 forks source link

Set config correctly in repository #104

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Put the lines

[receive]
  denyCurrentBranch = ignore

into .git/config in the repository when creating a new repository.
Otherwise you can't push without an error, with recent versions of git.

Original issue reported on code.google.com by fiddloso...@gmail.com on 11 Jun 2010 at 11:44

GoogleCodeExporter commented 9 years ago
If you're lazy and don't want to edit .git/config, this command is enough:

git config receive.denyCurrentBranch ignore

Thanks, Giovanni.

Original comment by g.mascel...@gmail.com on 3 Aug 2010 at 5:55

GoogleCodeExporter commented 9 years ago
Thanks, fixed.

Original comment by fiddloso...@gmail.com on 3 Aug 2010 at 7:27

GoogleCodeExporter commented 9 years ago
Another solution would be to have a way for gitit to work with a bare repo, 
then no special config option is required to allow 'push'.

Original comment by bcandler...@googlemail.com on 11 Dec 2011 at 9:48