Skip to content

Instantly share code, notes, and snippets.

@scsibug
Created March 12, 2017 20:26
Show Gist options
  • Save scsibug/b10743f433d2e10f158871bc0666c03c to your computer and use it in GitHub Desktop.
Save scsibug/b10743f433d2e10f158871bc0666c03c to your computer and use it in GitHub Desktop.
Setting up a bare repo and connecting a remote
# On shared server
git init --bare <directory>
# On client
# For a new repository
git clone ssh://user@host/path/to/dir
# For an existing repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment