Re: Newbie to git

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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!
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]