Skip to content

Instantly share code, notes, and snippets.

@xiangjjj
Created March 16, 2017 14:09
Show Gist options
  • Save xiangjjj/e1c33723d65ed8bd01f7de9f2a8aa91c to your computer and use it in GitHub Desktop.
Save xiangjjj/e1c33723d65ed8bd01f7de9f2a8aa91c 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