Skip to content

Instantly share code, notes, and snippets.

@z-zawhtet-a
Forked from bluenex/git_command_note.md
Last active August 29, 2015 14:15
Show Gist options
  • Save z-zawhtet-a/dc86046f874e24379d13 to your computer and use it in GitHub Desktop.
Save z-zawhtet-a/dc86046f874e24379d13 to your computer and use it in GitHub Desktop.

Testing fork

Add existing sources to repository

git remote add origin <repo>
git push -u origin master # pushes up the repo and its refs for the first time

Changing URL between SSH and HTML can use git remote set-url too.

git remote set-url <remote name> <repo>
# remote name can be origin or upstream in common. 

git remote -v # list existing remote names
# set
git config --global http.proxy http://<username>:<password>@<proxy server>:<proxy port>
git config --global https.proxy https://<username>:<password>@<proxy server>:<proxy port>

#unset
git config --global --unset http.proxy
git config --global --unset https.proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment