sparkydogX / sparkydogx_blog_comment

Comments for https://sparkydogx.github.io
1 stars 0 forks source link

通过github与git同步代码 | SparkydogX Blog #129

Open sparkydogX opened 4 years ago

sparkydogX commented 4 years ago

https://sparkydogx.github.io/2019/11/17/git-sync-with-github/#more

首先在Github里创建一个repo,创建时按照默认设置即可。创建完成后会获得一个连接:https://github.com/xxx/xxxx.git 初次上传在本地的git项目中执行git remote add origin https://github.com/xxx/xxxx.gitgit push -u origin master pull到本地git pull push到服务器git p