Skip to content

Instantly share code, notes, and snippets.

@albohlabs
Created March 6, 2012 22:09
Show Gist options
  • Save albohlabs/1989322 to your computer and use it in GitHub Desktop.
Save albohlabs/1989322 to your computer and use it in GitHub Desktop.
CLI: gitosis
# initial new git
git clone [email protected]:gitosis-admin.git
git push
# add to server
git remote add origin [email protected]:bsad.git
git push origin master
# edit gitosis.conf
[group MY_PROJECT]
members = vince@urbanpuddle
writable = myrailsapp
# upload to server
git commit -a -m "created a new repository!"
git push
# create project
mkdir MY_PROJECT
cd MY_PROJECT
# Designate the server as a remote repository
git remote add origin git@83.169.20.139:MY_PROJECT.git
# Add files and commit!
git add .
git commit -a -m "initial import"
git push origin master:refs/heads/master
# test
git clone [email protected]:MY_PROJECT.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment