新环境写博客

从远处下载分支

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

添加到暂存区、commit、推送

1
2
3
4
5
git add .
git commit -m "Your commit message here"
git remote add origin https://github.com/Natdog-6ix9ine/natdog.git
git push origin mysource