1. 程式人生 > >github 操作查閱 建立倉庫 程式碼更新

github 操作查閱 建立倉庫 程式碼更新

Add the repository...

git remote add [url]

Bind your name, email

git global user.name "[name]"
git global user.email email

Add to local and Write your comment (must procedure)

git add .
git commit -m "[comment]"
git pull origin master

If fetal: refused to merge

Use this:

git pull origin master –allow-unrelated-histories

Hand in your local code.

git push -u origin master