Sätta upp git remote i efterhand

Set up remote server

ssh git@wendt.se
mkdir $project.git
cd $project.git
git --bare init
git --bare update-server-info
chmod +x hooks/post-update #should contain git-update-server-info
$EDITOR description

Push from local

git remote add origin git@wendt.se:$project.git
git push origin master
for i in *.git ; do
	echo "http://source.wendt.se/git-repo/$i" > $i/cloneurl

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.