博客
关于我
Git 简介与安装
阅读量:363 次
发布时间:2019-03-04

本文共 720 字,大约阅读时间需要 2 分钟。

Git简介与安装

Git历史

Git诞生于Linux内核开源项目的背景。1991-2002年间,Linux内核维护工作主要集中在提交补丁和保存归档的繁琐事务上。2002年,项目组启用分布式版本控制系统BitKeeper。2005年,BitKeeper的商业公司停止与Linux开源社区的合作,迫使社区开发属于自己的版本控制系统。新系统的目标包括速度、简单设计、支持并行开发、完全分布式以及管理大规模项目的能力。

Git与svn对比

Svn

SVN是集中式版本控制系统,版本库位于中央服务器,开发者需从服务器获取最新版本并推送修改。其优势在于集中管理权限,但也存在服务器单点故障和容错性差的问题。

Git

Git是分布式版本控制系统,版本库位于每个开发者的本地电脑,无需联网即可工作。协作时,通过将修改推送给其他开发者实现信息同步。

Git工作流程

  • 从远程仓库克隆Git资源,创建本地仓库。
  • checkout代码并进行修改。
  • 提交代码到暂存区。
  • 提交修改到本地仓库,保存版本历史。
  • 修改完成后,将代码推送到远程仓库。
  • Git安装

    Git最初在Linux上开发,现已移植至Windows、Mac和其他系统。以下是Windows下的安装步骤:

    软件下载

    推荐下载地址:Git官方下载地址

    软件安装

  • 运行安装程序,一路选择默认选项即可完成安装。
  • TortoiseGit安装

  • 运行安装程序,一路选择默认选项。
  • 安装完成后,右键菜单中会出现Git菜单项。
  • 中文语言包安装

    安装中文语言包非必需,可根据个人需求选择。安装完成后,可在TortoiseGit设置中调整语言。

    安装完成后的使用

    安装完成后,可通过右键菜单中Git菜单项快速启动Git命令工具。

    转载地址:http://wour.baihongyu.com/

    你可能感兴趣的文章
    NN&DL4.1 Deep L-layer neural network简介
    查看>>
    NN&DL4.3 Getting your matrix dimensions right
    查看>>
    NN&DL4.8 What does this have to do with the brain?
    查看>>
    No 'Access-Control-Allow-Origin' header is present on the requested resource.
    查看>>
    No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
    查看>>
    No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
    查看>>
    No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
    查看>>
    No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
    查看>>
    No module named cv2
    查看>>
    No module named tensorboard.main在安装tensorboardX的时候遇到的问题
    查看>>
    No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
    查看>>
    No new migrations found. Your system is up-to-date.
    查看>>
    No qualifying bean of type XXX found for dependency XXX.
    查看>>
    No resource identifier found for attribute 'srcCompat' in package的解决办法
    查看>>
    No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
    查看>>
    NO.23 ZenTaoPHP目录结构
    查看>>
    NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata
    查看>>
    Node JS: < 一> 初识Node JS
    查看>>
    Node-RED中使用JSON数据建立web网站
    查看>>
    Node-RED中使用node-red-browser-utils节点实现选择Windows操作系统中的文件并实现图片预览
    查看>>