mkdir folder //创建文件夹

cd folder/

git clone git连接

git status //git当前的状态

ls //当前目录下的所有文件

cd gitFolder 进入Git目录

git cherry 更新当前分支

git log //看日志

git add . (git add *)   添加git下的文件

git commit -m ‘提交’ 本地提交

git pull  本地提交与远端进行比较看是否存在冲突(存在协同开发每次提取代码前都需要跟本地提交进行对比,看是否有冲突)

git branch -a  查看分支

git push  (远端的代码跟本地提交无冲突时,直接push到远程)

查看git status 提示nothing 表示提交到远端无错误

删除远程文件(当需要删除不用的远端文件)

cd 路径

git rm -r -cached “folder/”

git commit -m “remove bin folder”

git push

//强退某个版本

git log -3 最近的3个版本的日志

git reset --hard e377f60e28c8b84158 //重置git指针头

git push -f origin master  //强制推向master主分支

最新文章

  1. 安装sass并ruby更改淘宝镜像
  2. javaweb学习总结十九(http协议概述以及http请求信息分析)
  3. http://www.cnbc.com/2016/07/12/tensions-in-south-china-sea-to-persist-even-after-court-ruling.html
  4. form表单转换为Json数据
  5. Spring Cloud 之 服务注册与发现
  6. ISP PIPLINE (九_2) Denoise 之 time domain denoise
  7. nmap比较详细的使用方法
  8. ZooKeeper Getting Started Guide
  9. [UE4]把枪打飞addImpulse
  10. php 分页实现 和 php 大文件上传失败的处理方式
  11. Codeforces 787D. Legacy 线段树建模+最短路
  12. 使用python做简单的接口性能测试
  13. vue.js使用typescript踩坑记
  14. n-grama
  15. Educational Codeforces Round 61 (Rated for Div. 2) E. Knapsack
  16. BottomNavigationView的使用
  17. HDU 2829 Lawrence(四边形优化DP O(n^2))
  18. 引爆你的Javascript代码进化 (转)
  19. bzoj 1011 近似估计
  20. 算法训练 Pollution Solution(计算几何)

热门文章

  1. Python3 min() 函数
  2. for 续7
  3. leetcode 204 count prim 数素数
  4. 有关jQuery valid 验证多个同name属性的input的问题
  5. UVa 10118 Free Candies (记忆化搜索+哈希)
  6. 图解利用Word来发布博客
  7. [Erlang24]使用zotonic搭建网站记录
  8. docker 操作命令详解
  9. (zxing.net)一维码UPC A的简介、实现与解码
  10. AutoMapper在C#中的有趣应用