Blog推送Github仓库常用命令
115 字
1 分钟
Blog推送Github仓库常用命令
Blog推送Github仓库常用命令
0.构建/dist
pnpm build1.在/dist新建仓库+commit
git initgit add .git commit -m "xxx"2.链接远程仓库+push
#如果原本已经链接过远程仓库,要先清除绑定#git remote remove origingit remote add origin git@github.com:{your_git_name}/{your_repo_name}.git#这里使用ssh,因为国内网络环境,http容易被rst阻断git push -f origin master#我用的是master分支,看你用的github pages选择的发布分支名替换支持与分享
如果这篇文章对你有帮助,欢迎分享给更多人或赞助支持!
Blog推送Github仓库常用命令
https://jiheweihuan.github.io/posts/gitcommand/