1

1

1

Git常用命令

1

1

1

1

1

1

https://www.codecademy.com/learn/learn-git

Learn Git

You have now been introduced to the fundamental Git workflow. You learned a lot! Let's take a moment to generalize:

    • Git is the industry-standard version control system for web developers
    • Use Git commands to help keep track of changes made to a project:
      • git init creates a new Git repository
      • git status inspects the contents of the working directory and staging area
      • git add adds files from the working directory to the staging area
      • git diff shows the difference between the working directory and the staging area
      • git commit permanently stores file changes from the staging area in the repository
      • git commit -m "this is a comment"
      • git log shows a list of all previous commits

1

1

1

1

1

1

1

1

1

CVS、SVN、Git、GitHub

CVS(Concurrent Versions System/Concurrent Versioning System):协作版本系统/并发版本系统,是一种版本控制系统,方便软件的开发和用户协同工作。

https://zh.wikipedia.org/wiki/CVS

Apache Subversion(简称SVN),一个开放源代码版本控制系统,相较于RCSCVS,它采用了分支管理系统,它的设计目标就是替换CVS。互联网上很多版本控制服务已从CVS转移到Subversion。

https://zh.wikipedia.org/wiki/Subversion

https://subversion.apache.org/

Git/ɡɪt/[5] 音频帮助·信息))是一个分布式版本控制软件,最初由林纳斯·托瓦兹(Linus Torvalds)创作,于2005年以GPL发布。最初目的是为更好地管理Linux内核开发而设计。应注意的是,这与GNU Interactive Tools[6](一个类似Norton Commander界面的文件管理器)有所不同。

https://zh.wikipedia.org/wiki/Git

https://git-scm.com/

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Git is easy to learn and has a tiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenientstaging areas, and multiple workflows.

https://git-for-windows.github.io/

模拟环境和Git都打包好了,名叫msysgit

在线教程:

https://try.github.io/levels/1/challenges/1

  1. git init
  2. git status  Checking the Status
  3. git status Adding & Committing
  4. git add octocat.txt Adding Changes
  5. git status Checking for Changes
  6. git commit -m "Add cute octocat story" Committing
  7. git add '*.txt' Adding All Changes
  8. git commit -m 'Add all the octocat txt files' Committing All Changes
  9. git log History
  10. git remote add origin https://github.com/try-git/try_git.git Remote Repositories
  11. git push -u origin master Pushing Remotely
  12. git pull origin master Pulling Remotely
  13. git diff HEAD Differences
  14. git add octofamily/octodog.txt Staged Differences
  15. git diff --staged Staged Differences (cont'd)
  16. git reset octofamily/octodog.txt Resetting the Stage
  17. git checkout -- octocat.txt Undo
  18. git branch clean_up Branching Out
  19. git checkout clean_up Switching Branches
  20. git rm '*.txt' Removing All The Things
  21. git commit -m "Remove all the cats" Commiting Branch Changes
  22. git checkout master Switching Back to master
  23. git merge clean_up Preparing to Merge
  24. git branch -d clean_up Keeping Things Clean
  25. git push The Final Push

...........................................................................................................................................................................................................

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

GitHub

GitHub是一个利用Git进行版本控制、专门用于存放软件代码与内容的共享虚拟主机服务。它由GitHub公司(曾称Logical Awesome)的开发者Chris Wanstrath、PJ Hyett和Tom Preston-Werner使用Ruby on Rails编写而成。

GitHub同时提供付费账户和免费账户。这两种账户都可以创建公开的代码仓库,但是付费账户也可以创建私有的代码仓库。根据在2009年的Git用户调查,GitHub是最流行的Git访问站点。[2]除了允许个人和组织创建和访问代码库以外,它也提供了一些方便社会化软件开发的功能,包括允许用户追踪其他用户、组织、软件库的动态,对软件代码的改动和bug提出评论等。GitHub也提供了图表功能,用于显示开发者们怎样在代码库上工作以及软件的开发活跃程度。

截止到2015年,GitHub已经有超过九百万注册用户和2110万代码库。[3]事实上已经成为了世界上最大的代码存放网站和开源社区。[4]

https://zh.wikipedia.org/wiki/GitHub

https://github.com/xgqfrms

Start Learning for Free Today

https://www.codeschool.com/free/?utm_medium=email&utm_campaign=upsell_badges&utm_source=mailchimp&utm_content=null

1

1

1

1

1

1

1

1

1

regex,regexp,regular expressions

1

1

1

1

CVS、SVN、Git、GitHub :版本控制系统的更多相关文章

  1. 开发效率优化之Git分布式版本控制系统(一)

    阿里P7移动互联网架构师进阶视频(每日更新中)免费学习请点击:https://space.bilibili.com/474380680本篇文章将先从Git分布式版本控制系统来阐述开发效率优化 一,企业 ...

  2. Git分布式版本控制系统(上)

    Git分布式版本控制系统(上) 链接:https://pan.baidu.com/s/1CgaEv12cwfbs5RxcNpxdAg 提取码:fytm 复制这段内容后打开百度网盘手机App,操作更方便 ...

  3. GIT分布式版本控制系统

    Git诞生历史 我想大家还记得Linus torvalds在1991年时发布了Linux操作系统吧,从那以后Linux系统变不断发展壮大,因为Linux系统开源的特性,所以一直接受着来自全球Linux ...

  4. 《Linux就该这么学》自学笔记_ch21_使用Git分布式版本控制系统

    <Linux就该这么学>自学笔记_ch21_使用Git分布式版本控制系统 文章主要内容: 分布式版本控制系统 使用Git服务程序 提交数据 移除数据 移动数据 历史记录 还原数据 管理标签 ...

  5. 手把手教你玩转Git分布式版本控制系统! (转载)

    目录 Git诞生历史 Git环境准备 Git安装部署 Git常用命令 Git基本操作 Git管理分支结构 Git管理标签 GitLab安装部署 GitHub托管服务 Git客户端工具 Git诞生历史 ...

  6. 手把手教你玩转Git分布式版本控制系统!

    目录 Git诞生历史 Git环境准备 Git安装部署 Git常用命令 Git基本操作 Git管理分支结构 Git管理标签 GitLab安装部署 GitHub托管服务 Git客户端工具 1 Git诞生历 ...

  7. g4e基础篇#2 Git分布式版本控制系统的优势

    g4e 是 Git for Enterprise Developer的简写,这个系列文章会统一使用g4e作为标识,便于大家查看和搜索. 章节目录 前言 1. 基础篇: 为什么要使用版本控制系统 Git ...

  8. GIT 分布式版本控制系统的简单使用介绍

    GIT 分布式版本控制系统的简单使用介绍 1.GIT的概念Git是一个开源的分布式版本控制系统,用于敏捷高效地处理任何或小或大的项目. Git 与 SVN 区别:1. GIT不仅仅是个版本控制系统,它 ...

  9. Git ——分布式版本控制系统

    Git ——分布式版本控制系统 本人git主页地址:https://github.com/lendoon/test.git git使用心得:初次接触git在课堂上,老师给我们提供了一个代码托管的场所, ...

  10. Git分布式版本控制系统(下)

    Git分布式版本控制系统(下) 链接:https://pan.baidu.com/s/1CgaEv12cwfbs5RxcNpxdAg 提取码:fytm 复制这段内容后打开百度网盘手机App,操作更方便 ...

随机推荐

  1. FGC频繁 GC卡顿

    https://mp.weixin.qq.com/s/I1fp89Ib2Na1-vjmjSpsjQ 线上服务的FGC问题排查,看这篇就够了! 原创 骆俊武 IT人的职场进阶 2020-05-10   ...

  2. (Oracle)关于blob转到目标库报ORA-01461: 仅能绑定要插入 LONG 列的 LONG 值错误解决方案

    在数据抽取时,开发需要clob类型的数据,但是目标库类型是blob类型的,于是抽取的时候报错: ORA-01461: 仅能绑定要插入 LONG 列的 LONG 值错误 可能有以下几种原因: 可能有以下 ...

  3. 内联扩展 inline expansion An Inline Function is As Fast As a Macro 与宏的比较

    让编译器直接将完整的函数体插入到每一个调用该函数的地方,从而提高函数调用的运行速度. 优秀的JIT编译器会通过侦测运行信息,仅将需要频繁运行的瓶颈部分进行编译,从而大大削减编译所需的时间. 而且,利用 ...

  4. Kubernetes TensorFlow 默认 特定 集群管理器 虚拟化技术

    Our goal is to foster an ecosystem of components and tools that relieve the burden of running applic ...

  5. IDEA、Pycharm学生免费使用(无教育邮箱)

    一.打开JetBrains学生产品网站 JetBrains Products for Learning:https://www.jetbrains.com/shop/eform/students 二. ...

  6. c++复习笔记(3)

    这篇是各种琐碎的东西. 类的函数如果在类内部直接实现,则成为内联函数候选.类外部实现的方法,可以用inline声明,使其称为内联函数候选.但是函数是否可以成为内联函数,需要看编译器的行为.. 构造函数 ...

  7. Australia Trip Memory (>~<)

    近日,掠过空中星尘,喜于"水雾","牛马",晨曦中不情愿地睁开双眼,到达 Australia 这个"人间天堂"那天的场景还似黄粱一梦却已经是 ...

  8. WPF 之 依赖属性与附加属性(五)

    一.CLR 属性 ​ 程序的本质是"数据+算法",或者说用算法来处理数据以期得到输出结果.在程序中,数据表现为各种各样的变量,算法则表现为各种各样的函数(操作符是函数的简记法). ...

  9. linux中在某个目录下多个文件中搜索关键字

    有四种方法: find 文件目录 -name '*.*' -exec grep 'xxx' {} + -n 或是 find 文件目录 -name '*.*' | xargs grep 'xxx' -n ...

  10. 【noi 2.6_2421】Exchange Rates(DP)

    题意:起始有1000元美元,给出N天美元与加拿大元的汇率.问N天内可以不停的兑换,每次兑换需要收取3%的手续费,问可以得到的最大的美元数. 解法:直接用2个变量存第 i 天时手中是美元和加拿大元的最大 ...