DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Getting A Github Repo Started.

10.14.2009
| 1779 views |
  • submit to reddit
        
Global setup:

  Download and install Git
  git config --global user.name "Zeke Sikelianos"
  git config --global user.email zeke@sikelianos.com
        

Next steps:

  mkdir my_project
  cd my_project
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin git@github.com:zeke/my_project.git
  git push origin master
      

Existing Git Repo?

  cd existing_git_repo
  git remote add origin git@github.com:zeke/my_project.git
  git push origin master