Skip to content

Instantly share code, notes, and snippets.

@jtarleton
Created January 31, 2013 21:03
Show Gist options
  • Save jtarleton/4686416 to your computer and use it in GitHub Desktop.
Save jtarleton/4686416 to your computer and use it in GitHub Desktop.
Initialize a local git repo, push to master branch of the "origin" repo on a remote server
mkdir prj1
cd prj1
git init
touch README
git add .
git commit -m "Added blank readme"
git remote add origin git@server:prj1.git
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment