`

向自己的github 帐号服务托管代码

阅读更多
First Create a New Repository
  project name :company
 
Next steps:
 
mkdir company
  cd company
  git init
  touch README
  git add README #git add .   commit all
  git commit -m 'first commit'
  git remote add origin git@github.com:pobing/company.git
   git push -u origin master

     
Existing Git Repo?
 
  cd existing_git_repo
  git remote add origin git@github.com:pobing/company.git
  git push -u origin master
  

    
clone 一个Repository ,修改后并提交:
 git clone git@github.com:pobing/company.git
 git status
 git commit -m ""
 git push  #这样修改后可以直接提交



分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics