GitHub Example Setup Commands

Global setup:

 Set up git
  git config --global user.name "Your Name"
  git config --global user.email [email protected]

Next steps:

  mkdir your-repo-name
  cd your-repo-name
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin [email protected]:username/your-repo-name.git
  git push -u origin master

Existing Git Repo?

  cd existing_git_repo
  git remote add origin [email protected]:username/your-repo-name.git
  git push -u origin master

Related Posts:

  • No Related Posts
This entry was posted in Web Development and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *