Skip to content

Instantly share code, notes, and snippets.

@geastwood
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geastwood/e831dbbe2dabab376a74 to your computer and use it in GitHub Desktop.
Save geastwood/e831dbbe2dabab376a74 to your computer and use it in GitHub Desktop.
vm git repo
bare clone
create a folder with name new_bare_clone.git
cd new_bare_clone.git
git init --bare
To push to this branch
git remote add origin "ssh://root@88.81.24.209/~/repos/to/folder"
From a local to push up
1. set local branch to be tracked by remote by
git push --set-upstream origin master
2. can push and pull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment