Git 相关配置

Git安装

brew install git

SSH相关

在本博客其他文章中有介绍

Git全局设置

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

创建一个新的仓库

git clone [email protected]:youku-android/tools.git
cd tools
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

现有文件夹或Git存储库

cd existing_folder
git init
git remote add origin [email protected]:youku-android/tools.git
git add .
git commit
git push -u origin master
posted @ 2021-03-11 14:41  巫鸦  阅读(86)  评论(0)    收藏  举报