Skip to content

Instantly share code, notes, and snippets.

@panfu
Created November 14, 2010 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panfu/676107 to your computer and use it in GitHub Desktop.
Save panfu/676107 to your computer and use it in GitHub Desktop.
新生成一个git项目
Global setup:
Download and install Git
git config --global user.name "panfu"
git config --global user.email panfu.gz@gmail.com
Next steps:
mkdir mochiweb_example
cd mochiweb_example
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:panfu/mochiweb_example.git
git push origin master
Existing Git Repo?
cd existing_git_repo
git remote add origin git@github.com:panfu/mochiweb_example.git
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment