First time using Git(首次用git)
cd myproject
git init
# add all your files. Use can use specific filenames or directories instead of '.'
git add .
git commit -a -m 'Initial commit'
git remote add origin ssh://[email protected]/p/doufe-com/code
git push origin master
git branch --set-upstream master origin/master # so 'git pull' will work later
Existing repository using Git(已经存在库)
cd myproject
git remote add origin ssh://[email protected]/p/doufe-com/code
git push origin master
git branch --set-upstream master origin/master # so 'git pull' will work later