git

创建新的仓库

git init

全局配置

git config --list

git config --global user.name hilyso
git config --global user.email 2205040344@qq.com

全局配置

vim ~/.gitconfig

[user]
name = hilyso
email = 2205040344@qq.com

验证ssh配置

ssh -T git@github.com

示例 1

拉取远程仓库到本地, 添加 123.txt后在推动至远程仓库

git init 
git remote add origin git@github.com:hilyso/test.git
git pull origin master
echo 123>123.txt
git add 123.txt
git commit -m 'add 123.txt'
git push origin master

远程仓库管理

git remote add git@github.com:hilyso/hilyso.hithub.io.git
git remote show