# 创建一个新库

echo "# q" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M master
git remote add origin git@github.com:username/repo.git
git push -u origin master

# 推送本地已有库到远端

git remote add origin git@github.com:username/repo.git
git branch -M master
git push -u origin master

# 新建空分支

git checkout --orphan master
git add .
git commit -m "clear old commits"
git push --set-upstream origin master

# DVC 管理数据

登录 DagsHub
dvc remote add origin https://dagshub.com/<DagsHub-user-name>/hello-world.dvc
dvc remote modify origin --local auth basic
dvc remote modify origin --local user <DagsHub-user-name>
dvc remote modify origin --local password <Token>
dvc add data
git add .
git commit -m "Add data directory to DVC tracking"
dvc push -r origin
git push