git教程一

Git是目前世界上最先进的分布式版本控制系统

安装

sudo apt-get install git

初始化

git config --global user.name "chuxia"
git config --global user.email "[email protected]"

初始化完成后全局配置保存在.gitconfig文件

查看

cat ~/.gitconfig

下载

git clone https://github.com/xiaxia_cc/usegit

初始化git仓库

mkdir study_Git
cd study_Git
git init

此时,在本地初始化成功了一个空的git仓库

查看git仓库下的文件

cd .git
ls -al

猜你喜欢

转载自blog.csdn.net/qq_35557878/article/details/86523585