1. 程式人生 > 其它 >how to share code with gitee?

how to share code with gitee?

1

 

2

 3

 

 4

 

 

 

Successfully created project 'gmall-publisher-test' on Gitee, but initial commit failed: Author identity unknown ***

Please tell me who you are. Run git config --global user.email "[email protected]" git config --global user.name "

Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. unable to auto-detect email address (got

是git沒有配置的原因,找到git安裝目錄下的Git Bash執行後輸入下面兩行程式碼即可:

git config --global user.name "GitHub賬號"

git config --global user.email "GitHub賬號註冊的郵箱"

 

 

 

簡易的命令列入門教程:

Git 全域性設定:

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

建立 git 倉庫:

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

已有倉庫?

cd existing_git_repo
git remote add origin https://gitee.com/chang0675/app4.git
git push -u origin "master"