pinuo_cao124

git同步github

0
阅读(976)

#git init

#git add .

#git commit -m "commits"

#git remote add origin https://username.github.xxx.git

#git push remote origin master

----- sometimes, reject , you should pull xxx first---

#git pull origin master --allow-unrelated-histories

--------------------------------------------------------

other instructions

 

#git remote rm origin

#git clone https://github.com/username/XXXX.git

#git remote add origin https://github.com/username/XXXX.git

----configure

 #git config --global user.name "XXXX"
 #git config --global user.email "XXXX@163.com"