当前位置: 首页 > news >正文

安装 git 与查看 version

安装 git 与查看 version

  • 1. git installation
  • 2. git 安装
  • 3. git version
  • References

1. git installation

检查系统是否安装了 git。

strong@foreverstrong:~$ git
usage: git [--version] [--help] [-C <path>] [-c name=value][--exec-path[=<path>]] [--html-path] [--man-path] [--info-path][-p | --paginate | --no-pager] [--no-replace-objects] [--bare][--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]<command> [<args>]These are common Git commands used in various situations:start a working area (see also: git help tutorial)clone      Clone a repository into a new directoryinit       Create an empty Git repository or reinitialize an existing onework on the current change (see also: git help everyday)add        Add file contents to the indexmv         Move or rename a file, a directory, or a symlinkreset      Reset current HEAD to the specified staterm         Remove files from the working tree and from the indexexamine the history and state (see also: git help revisions)bisect     Use binary search to find the commit that introduced a buggrep       Print lines matching a patternlog        Show commit logsshow       Show various types of objectsstatus     Show the working tree statusgrow, mark and tweak your common historybranch     List, create, or delete branchescheckout   Switch branches or restore working tree filescommit     Record changes to the repositorydiff       Show changes between commits, commit and working tree, etcmerge      Join two or more development histories togetherrebase     Forward-port local commits to the updated upstream headtag        Create, list, delete or verify a tag object signed with GPGcollaborate (see also: git help workflows)fetch      Download objects and refs from another repositorypull       Fetch from and integrate with another repository or a local branchpush       Update remote refs along with associated objects'git help -a' and 'git help -g' list available subcommands and some
concept guides. See 'git help <command>' or 'git help <concept>'
to read about a specific subcommand or concept.

2. git 安装

strong@ubuntu:~$ git clone https://github.com/pjreddie/darknet.git
The program 'git' is currently not installed. You can install it by typing:
sudo apt-get install git
strong@ubuntu:~$ sudo apt-get install git

3. git version

strong@foreverstrong:~$ git --version
git version 2.7.4

References

[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/

相关文章:

  • LeetCode #104 二叉树的最大深度
  • 5G网络频谱划分与应用
  • C# 找出两个Rectangle或是矩形的相互重合与非重合部分?
  • 【C语言】常见的动态内存管理错误
  • AI Agent
  • 【Web】get请求和post请求的区别
  • fork创建子进程及僵尸进程的产生及规避
  • 百度交出2023年业绩答卷:全力提速AI布局,注入业绩增长新动能
  • React withRouter的使用及源码实现
  • AVL 树
  • Rocketmq java hello world 入门案例
  • LaMa Image Inpainting 图像修复 Onnx Demo
  • 贪心算法(算法竞赛、蓝桥杯)--修理牛棚
  • jmeter接口测试
  • Docker 第十九章 : 阿里云个人镜像仓使用
  • [译] 理解数组在 PHP 内部的实现(给PHP开发者的PHP源码-第四部分)
  • 2017 前端面试准备 - 收藏集 - 掘金
  • CentOS学习笔记 - 12. Nginx搭建Centos7.5远程repo
  • crontab执行失败的多种原因
  • CSS实用技巧干货
  • exports和module.exports
  • flutter的key在widget list的作用以及必要性
  • Java 内存分配及垃圾回收机制初探
  • JavaScript服务器推送技术之 WebSocket
  • learning koa2.x
  • npx命令介绍
  • Spring Cloud Alibaba迁移指南(一):一行代码从 Hystrix 迁移到 Sentinel
  • Vue.js-Day01
  • WordPress 获取当前文章下的所有附件/获取指定ID文章的附件(图片、文件、视频)...
  • 闭包--闭包之tab栏切换(四)
  • 服务器之间,相同帐号,实现免密钥登录
  • 基于Volley网络库实现加载多种网络图片(包括GIF动态图片、圆形图片、普通图片)...
  • 聊聊flink的TableFactory
  • 巧用 TypeScript (一)
  • 如何实现 font-size 的响应式
  • 如何用Ubuntu和Xen来设置Kubernetes?
  • 删除表内多余的重复数据
  • 微服务入门【系列视频课程】
  • 我建了一个叫Hello World的项目
  • 一起参Ember.js讨论、问答社区。
  • 深度学习之轻量级神经网络在TWS蓝牙音频处理器上的部署
  • raise 与 raise ... from 的区别
  • shell使用lftp连接ftp和sftp,并可以指定私钥
  • # 学号 2017-2018-20172309 《程序设计与数据结构》实验三报告
  • #define 用法
  • #QT(一种朴素的计算器实现方法)
  • #微信小程序(布局、渲染层基础知识)
  • (阿里云万网)-域名注册购买实名流程
  • (笔试题)分解质因式
  • (二十五)admin-boot项目之集成消息队列Rabbitmq
  • (论文阅读22/100)Learning a Deep Compact Image Representation for Visual Tracking
  • (一)RocketMQ初步认识
  • (原创)Stanford Machine Learning (by Andrew NG) --- (week 9) Anomaly DetectionRecommender Systems...
  • ***详解账号泄露:全球约1亿用户已泄露
  • .NET CF命令行调试器MDbg入门(一)