1. 程式人生 > >簡單的Git命令

簡單的Git命令

onf code config xxxx 命令 master tps rem oba

Git 全局設置:

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

創建 git 倉庫:

mkdir test
cd test
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/xxxx/test.git
git push -u origin master

已有項目?

cd existing_git_repo
git remote add origin https:
//gitee.com/xxxx/test.git git push -u origin master

簡單的Git命令