Skip to content

Instantly share code, notes, and snippets.

@xiangjjj
Created March 16, 2017 14:05
Show Gist options
  • Save xiangjjj/0180314c4187b8f09722ffb48d9f391f to your computer and use it in GitHub Desktop.
Save xiangjjj/0180314c4187b8f09722ffb48d9f391f to your computer and use it in GitHub Desktop.
# A bare repo is required everytime a new repo is created.
# It serves as the origin repo for remote users and is only updated by pushing to it.
cd ~
mkdir test_repo
cd test_repo
git init --bare
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment