Github项目克隆再上传

首先:克隆项目

1
2
$ git clone --depth 1 git@github.com:用户名/myblogs-hugo-meme.git
$ git clone --depth 1 https://github.com/用户名/myblogs-hugo-meme.git

设置本地用户

1
2
$ git config --global user.email "you@example.com"
$ git config --global user.name "Your Name"

关联远程仓库

1
$ git remote add origin “你的仓库SSH地址/http地址”

然后

1
$ 对项目做出修改

最后

1
2
3
$ git add .
$ git commit -m "尝试"
$ git push -u origin master

ok

加载评论
点击刷新