cd 当前目录
git init
git add .
git commit -m "feat:init."
git remote add origin https://gitlab.com/xxx/future.git
git push -u origin master
gitlab
删除旧仓库 :
Settings -- > general --> default --> Delete this project
修改默认分支:
Settings -- > Repository --> Branch defaults (master)
设置保护分支
Settings -- > Repository --> Protected branches (master)
设置gitlab保护稳定的资源推送到github,如图
github
gitlab
默认会自动推送,也可以手动推送:gitlab远程仓库手动推送到github
Settings -- > Repository --> Mirroring repositories --> 点击刷新按钮