Skip to content

Instantly share code, notes, and snippets.

@xiangjjj
Created March 16, 2017 14:09
Show Gist options
  • Save xiangjjj/fe9879e372637eb47f3fa91a431fb738 to your computer and use it in GitHub Desktop.
Save xiangjjj/fe9879e372637eb47f3fa91a431fb738 to your computer and use it in GitHub Desktop.
# create local repo
mkdir test_repo
# add remote repo
# now you can see how private_git_host simplifies our life
git remote add origin private_git_host:test_repo.git
# we can push, pull, etc.
git touch test_file
git commit -m "test commit"
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment