GIT

I hate setting up new repo’s…

If you have a local repo that you would like to share, on the remote server create a new directory (with correct permissions).

then, cd into the dir

and type

git --bare init

or

git --bare init --shared=group

on the local machine you can now push your copy up, like this. (make sure you are in the directory)

git remote add origin [email protected]:/file/directory/
git add .
git commit -m "commit change"
git push origin master

Comments are closed.