Skip to content

Instantly share code, notes, and snippets.

@tamboer
Last active December 21, 2015 19:09
Show Gist options
  • Select an option

  • Save tamboer/6351883 to your computer and use it in GitHub Desktop.

Select an option

Save tamboer/6351883 to your computer and use it in GitHub Desktop.
git init create
Git global setup:
git config --global user.name "user"
git config --global user.email "example@example.com"
Create Repository
mkdir new_repo
cd new_repo
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@localhost:new_repo.git
git push -u origin master
Existing Git Repo?
cd existing_git_repo
git remote add origin git@localhost:new_repo.git
//-u set upstream for git pull/status
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment