git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: Newbie to git

From
SPShantanu 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!

Previous: Jorge BastosNext: Jorge Bastos
Message 11 of 12 in “Newbie to git”
  1. Jorge BastosDec 27, 2009
  2. mysql.jorge@decimal.ptDec 27, 2009
  3. Howard MillerDec 27, 2009
  4. mysql.jorge@decimal.ptDec 27, 2009
  5. Andreas SchwabDec 27, 2009
  6. mysql.jorge@decimal.ptDec 27, 2009
  7. Junio C HamanoDec 28, 2009
  8. mysql.jorge@decimal.ptDec 28, 2009
  9. Eugene SajineDec 28, 2009
  10. Jorge BastosDec 28, 2009
  11. Shantanu PavgiDec 28, 2009
  12. Jorge BastosDec 29, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.