git上传

  1. #1、Git 全局设置:  
  2. git config --global user.name "skbarcode"  
  3. git config --global user.email "24072078@qq.com"  
  4. #2、初始化 git 仓库:  
  5. git init  
  6.   
  7.   
  8. touch README.md  
  9. git add *  
  10. git commit -m "first commit"  
  11. git remote add origin https://gitee.com/skbarcode/sk 
  12. git pull origin master --allow-unrelated-histories  
  13. git push -u origin master 
posted @ 2018-08-02 21:41  Bo_Liu  阅读(104)  评论(0编辑  收藏  举报