Git基礎教程之快速入門

簡易的命令行入門教程:

Git 全局設置:

git config --global user.name "your name"
git config --global user.email "your email"

創建 git 倉庫:

mkdir wxrobot_protject
cd wxrobot_protject
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin 你的倉庫地址
git push -u origin master

已有倉庫?

cd existing_git_repo
git remote add origin 你的倉庫地址
git push -u origin master
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章