Re: Newbie to git
- From
- Jorge Bastos <mysql.jorge@decimal.pt>
- Date
- Dec 28, 2009, 22:23 UTC
- Message-ID
- <4e972734347b7ad47786807a7abe1c0e@192.168.1.222>
- In-Reply-To
- <76c5b8580912280851k141bc6cev36df72b1993b8359@mail.gmail.com>
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!