RE: Newbie to git
- From
- Shantanu Pavgi <pavgi@uab.edu>
- Date
- Dec 28, 2009, 23:51 UTC
- Message-ID
- <540FAB030B18B14B8E672DB4B500635B1769FFD879@UABEXMBS6.ad.uab.edu>
- In-Reply-To
- <4e972734347b7ad47786807a7abe1c0e@192.168.1.222>
Jorge,
I remember having similar problem. I think it is with the user permissions. Check if the 'push-user' has read-write permissions on public repo. Check out '--shared' option while initializing bare repo (git-init --bare) or set appropriate permissions using chown/chmod. Hope this helps..
Thanks, Shantanu Pavgi.
________________________________________ From: git-owner@vger.kernel.org [git-owner@vger.kernel.org] On Behalf Of Jorge Bastos [mysql.jorge@decimal.pt] Sent: Monday, December 28, 2009 4:23 PM To: Eugene Sajine Cc: Junio C Hamano; git@vger.kernel.org Subject: Re: Newbie to git
Show 18 quoted lines
> Your /home/apache/gitprojects is a folder where your git repositories > are supposed to be placed. > Your Git repository = your project. > > By running a git daemon the way you do - you say that you are going to > serve all repositories from /home/apache/gitprojects. > > Bare repo = repo without working copy - the one which contains only > history and git objects (imagine it to be only .git folder from normal > repo) Therefore for bare repos there is a naming convention so they > have .git extension, while normal repo doesn't. So, myProject.git is > server based bare repo, while myProject is a local repo. > > Finally you have /home/apache/gitprojects/myProject.git > > The URL to clone from there will be - should be shown to you by CGIT > if you have everything correctly set up > git://192.168.1.206/myProject.git
Lets see if i understood:
my steps:
git init --bare /home/apache/gitbare cd /home/apache/gitprojects mkdir project cd project git init myproject.git
on gitweb, i see the project names in this format: "myproject.git/.git"
for example, for the git repo on git.kernel.org, it is shown as: "git/git.git"
shouldn't it appear in the same way here?
i have: $projectroot = "/home/apache/gitprojects/project/";
for CGIT, i have: repo.path=/home/apache/gitprojects/project/myproject.git
but it doesn't show nothing after i click it.
on the other hand, i cannot push changes via remote, after cloned the repository with:
git clone git://192.168.1.206/project/myproject.git
add some files
git add . git commit -m "aaaa" git push --tags "origin" master:master
and get:
error: unpack failed: unpack-objects abnormal exit To git://192.168.1.206/project/myproject.git ! [remote rejected] master -> master (n/a (unpacker error)) error: failed to push some refs to 'git://192.168.1.206/project/myproject.git' Failed
i feel i'm almost there but something is missing here... sorry my newbienest!