新环境写博客

从远处下载分支

  • 啥环境也没有
git clone -b mysource --single-branch https://github.com/Natdog-6ix9ine/natdog.git
  • 原来有环境,现在要更新
git fetch origin
git checkout main
git merge origin/main

添加到暂存区、commit、推送

git add .
git commit -m "Your commit message here"
git remote add origin https://github.com/Natdog-6ix9ine/natdog.git
git push origin mysource
posted @ 2025-12-12 21:44  natdog  阅读(9)  评论(0)    收藏  举报