---
title: "git 更新到最新版本的方法"
author: "clark1231"
date: "2013-04-20T12:25:08Z"
tags: []
categories: ["开源软件"]
slug: "git"
draft: false
lastmod: "2013-04-20T12:25:08Z"
id: 1850669
url: "https://caok1231.iteye.com/blog/1850669"
---

添加git的ppa源  
sudo apt-add-repository ppa:git-core/ppa  
sudo apt-get update  
sudo apt-get install git  
如果本地已经安装过Git，可以使用升级命令：  
sudo apt-get dist-upgrade