From: Jorge Bastos <mysql.jorge@decimal.pt>
To: Eugene Sajine <euguess@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>, <git@vger.kernel.org>
Subject: Re: Newbie to git
Date: Mon, 28 Dec 2009 22:23:52 +0000 [thread overview]
Message-ID: <4e972734347b7ad47786807a7abe1c0e@192.168.1.222> (raw)
In-Reply-To: <76c5b8580912280851k141bc6cev36df72b1993b8359@mail.gmail.com>
> 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!
next prev parent reply other threads:[~2009-12-28 22:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-27 16:42 Newbie to git Jorge Bastos
2009-12-27 17:45 ` mysql.jorge
2009-12-27 20:12 ` Howard Miller
2009-12-27 21:55 ` mysql.jorge
2009-12-27 22:34 ` Andreas Schwab
2009-12-27 23:00 ` mysql.jorge
2009-12-28 2:18 ` Junio C Hamano
2009-12-28 10:34 ` mysql.jorge
2009-12-28 16:51 ` Eugene Sajine
2009-12-28 22:23 ` Jorge Bastos [this message]
2009-12-28 23:51 ` Shantanu Pavgi
2009-12-29 12:11 ` Jorge Bastos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4e972734347b7ad47786807a7abe1c0e@192.168.1.222 \
--to=mysql.jorge@decimal.pt \
--cc=euguess@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox