1. 程式人生 > >碼雲-簡易Git命令

碼雲-簡易Git命令

簡易的命令列入門教程:

Git 全域性設定:

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

建立 git 倉庫:

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

已有專案?

cd existing_git_repo
git remote add origin https://gitee.com/william007/dubbo-demo.git
git push -u origin master