GitHub 远程仓库

git

git config --global user.name "clipboard"
git config --global user.email "clipboard@fastmail.com"
git config --global --list
ssh-keygen -t rsa -b 4096 -C "clipboard@fastmail.com"
pbcopy < ~/.ssh/id_rsa.pub
ssh -T git@github.com

nvm

touch ~/.zshrc
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
command -v nvm
nvm ls-remote
nvm install 18.12.1
nvm install 16.18.1
nvm ls
nvm alias default 16
node -v

Vue CLI

npm install -g @vue/cli

创建项目

cd frontend
cd vuejs
cd 2022-12-07
vue create vue-demo
cd vue-demo
npm run serve

远程仓库

第一次提交

git remote add origin git@github.com:clipboard/vue-demo.git
git remote -v
git push -u origin main

第二次提交

git add .
git commit -m '修改vue.config.js修改端口号'
git push origin main
posted @ 2022-12-07 22:51  clipboard  阅读(33)  评论(0编辑  收藏  举报