appélis.se

Skapa nytt git repo

mkdir project.git
cd project.git
git init –bare
chgrp -R src .
chmod -R ug+w .
chmod +s .
# the hooks/ and info/ dirs are special since the control repository access
chgrp -R src hooks info config description
find -type d -exec chmod +s {} ;

vi config: bare = true
vi description

Sen kopierar jag ett annat projekt och ändar remote-repo inställningar innan push…

Eller pushar från ett lokalt repo:
git init
git add .
git commit
git remote add origin /var/cache/git/<repo>.git
git push --set-upstream origin master