程序猿刚子的博客

大龄程序猿,分享互联网开发相关知识!前端、后端,架构等内容,欢迎关注公众号 chengxuyuangangzi

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Global setup:

 Set up git
  git config --global user.name "Your Name"
  git config --global user.email your email
      

Next steps:

  mkdir projectdir
  cd projectdir
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin git@github.com:username/gitproject.git
  git push -u origin master
      

Existing Git Repo?

  cd existing_git_repo
  git remote add origin git@github.com:username/gitproject.git
  git push -u origin master
posted on 2011-12-28 18:26  程序猿刚子  阅读(197)  评论(0编辑  收藏  举报