Skip to content

Instantly share code, notes, and snippets.

@aarti
Created January 4, 2014 20:21
Show Gist options
  • Save aarti/8260185 to your computer and use it in GitHub Desktop.
Save aarti/8260185 to your computer and use it in GitHub Desktop.
Create a bare git depot, add it as remote then push to it. Useful when setting up jenkins locally.
mkdir -p ~/depot
git clone --bare ~/dev/aarti/myproject ~/depot/myproject.git
cd ~/dev/aarti/myproject
git remote add origin ~/dev/aarti/myproject
git remote -v
git push jenkins master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment