git安装
Debian/Ubuntu
For the latest stable version for your release of Debian/Ubuntu
# apt-get install git
For Ubuntu, this PPA provides the latest stable upstream Git version
# add-apt-repository ppa:git-core/ppa
# apt update; apt install git
Fedora
# yum install git
(up to Fedora 21)
# dnf install git
(Fedora 22 and later)
上一篇 git 将其他分支替换为主分支
下一篇 git 丢弃未跟踪的本地修改