- Ensure you can
ssh user@targetserversuccessfully- Public/private keys are a smart choice here
- On
targetserver- Example here assumes all Git repository users are members of a
gitusersgroup, adjust to suit mkdir -p ~/path/to/repositorycd ~/path/to/repositorygit init --bare --shared=group- Switch
--shared=groupwill addcore.sharedrepository = 1to the repositories~/path/to/repository/configfile
- Switch
chgrp -R gitusers ~/path/to/repository- All done on
targetserver
- Example here assumes all Git repository users are members of a
- Now on development machine lets push working copy
mkdir -p ~/my/new/working/copycd ~/my/new/working/copygit inittouch somefile.txtgit add .git commit -m 'Initial commit'git remote add origin user@targetserver:path/to/repositorygit push -u origin mastergit fetchgit pull
-
-
Save onel0p3z/5698762 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment