git add 文件名称/. “.”代表全部
git commit -m -a
git push -u origin master 推送到远程仓库
------------------------------------------

配置git到github

git config --global user.name "Your Name"
git config --global user.email "email@example.com"
设置与github的关联可用ssh
ssh-keygen -t rsa -C "your_email@youremail.com"
--------------------------------------------------

利用https上传github

clone https地址到本地

在本地新建一个文件夹,然后利用右键git bush(windows)或者cd
git clone https://github.com/zonghanli/123.git(右面的为你自己仓库的地址)

添加上传文件

git add . //注意add后面有一个空格和.

commit与push

git init
git commit -m ‘stumansys’
git remote add origin https://github.com/zonghanli/123.git(右面的为你自己仓库的地址)
git push origin master
(git remote 报错“”the key is already”的话,git remote rm origin)

最新文章

  1. iOS-APNS证书申请与使用
  2. (原) tmux安装与使用
  3. 发布 PM2.5 数据的城市列表
  4. LRU Cache
  5. Poj(3615),Floyd,最大值中的最小值
  6. poj2239 Selecting Courses --- 二分图最大匹配
  7. CentOS 7 安装教程
  8. React-nwb的使用
  9. CountDownLatch, CyclicBarrier and Semaphore
  10. Angular页面选项卡切换要注意的toggleClass
  11. RBAC权限模型——项目实战(转)
  12. python zip()函数
  13. mysql 开发基础系列21 事务控制和锁定语句(下)
  14. 最接近原点的K个点
  15. javascript +new Date()
  16. 【巷子】---webpack配置非CMD规范的模块
  17. Mouse Touch Stylus
  18. MyEclipse 智能提示设置
  19. 2017ACM暑期多校联合训练 - Team 9 1010 HDU 6170 Two strings (dp)
  20. eclipse svn 以一种访问权限不允许的方式做了一个访问套接字的尝试

热门文章

  1. UML-基于GRASP对象设计步骤
  2. python pandas写入excel文件
  3. JavaScript—原生轮播和无缝滚动
  4. Elastic ik插件配置热更新功能
  5. 生产事故(MongoDB数据分布不均解决方案)
  6. 云托管,边缘物理计算&托管物理计算,你所需要了解的……
  7. cisco路由器license的相关命令简单梳理(转)
  8. python import xx和from xx import x 中的坑
  9. Python 安装zbar-py时出现 无法打开包括文件: “unistd.h” no such file or directory
  10. Sublime Text3 作Markdown编辑器 配置