|
4 vuotta sitten | |
---|---|---|
README.md | 4 vuotta sitten |
git config --global user.name ‘test'
git config --global user.email ‘test@qq.com’
打开cmd ---进入bash shell执行
ssh-keygen -C '用户名'; #生成密钥
cat ~/.ssh/id_rsa.pub #看密钥并复制密钥粘贴至--gogs-->用户设置---ssh密钥--增加密钥 完成后保存退出。
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin root@git.mintelcn.com:Minte-development/Test-project.git
git push origin master --force
# --force 表示强制本地覆盖线上
git remote add origin root@git.mintelcn.com:Minte-development/Test-project.git
git push origin master --force
# --force 表示强制本地覆盖线上