Skip to content

Instantly share code, notes, and snippets.

@sids
Created September 10, 2008 08:01
Show Gist options
  • Save sids/9850 to your computer and use it in GitHub Desktop.
Save sids/9850 to your computer and use it in GitHub Desktop.
git tips
## setup
git config user.name "Siddhartha Reddy"
git config user.email ""
## setup -- global
git config --global user.name "Siddhartha Reddy"
git config --global user.email ""
git config --global color.branch "auto"
git config --global color.status "auto"
git config --global color.diff "auto"
git config --global color.ui "auto"
## pushing existing git repo to a newly-created one
cd existing_git_repo
git remote add origin new_git_repo_url
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment