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

If counterpart happens. add

-f 

to your push code.

posted @ 2018-11-15 18:59  </Venus>  阅读(200)  评论(0)    收藏  举报