Last active
August 29, 2015 14:04
-
-
Save geastwood/e831dbbe2dabab376a74 to your computer and use it in GitHub Desktop.
vm git repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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://[email protected]/~/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