本地git项目首次传远程空项目
## 本地公钥加到gitlab设置中
在自己的电脑:
ssh-keygen
执行命令后会在 /root/.ssh文件夹下生成两个文件
id_rsa:私钥
id_rsa.pub:公钥
## 在项目文件路径中
git init
git add *
git commit -m "first" # -m 后为提交日志
git branch
git remote add origin git@git.....
# 配置完成后,可使用 git remote -v 命令查看是否生效
git push --set-upstream origin master
git add .
git push
删除本地git项目
ls -la # 查看
rm -fr .git