Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Steps to create a bare git repo
## setting up a personal git repository that you can push change sets to
## ssh-host: a host defined in ~/.ssh/config (see: ssh_config(5))
## camaro: the name of the repo
# on a remote host or local filesystem:
git init --bare camaro.git # (option: use --shared if there are other contributors)
# on local host cd to camaro directory:
git remote add origin ssh-host:[path/]camaro.git
# (for origin on local filesystem: git remote add origin file:///media/volume-name/camaro.git)
git push --set-upstream origin --all
git push --set-upstream origin --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment