关于自己的前端开发配置

83 阅读1分钟

一: 配置ssh

1: 配置用户邮箱

打开Git Bash Here

git config --global user.name "shizhiqiang"
git config --global user.email "zhiqiangshi_cn@163.com"

2:生成SSH公钥和私钥

ssh-keygen -t rsa -C "zhiqiangshi_cn@163.com"

3:添加公钥

二:vscode连接远程仓库

1 :远端创建仓库

2: vscode中初始化仓库

3: 将远端仓库与本地连接

git remote add origin git@gitee.com:shizhiqiang-gitee/snake-game.git

4 : vscode中提交代码并推送分支

此过程可能会输入账号密码,输入即可

5: vscode拉取推送会报错

There is no tracking information for the current branch

解决办法:

git branch --set-upstream-to=origin/master master