Thread (6 messages) 6 messages, 4 authors, 2016-06-15

Re: Newbie to git

flat view

From: Jorge Bastos <hidden>
Date: 2016-06-15 22:47:56

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!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help