Git的配置 环境变量的配置
1、ssh公钥配置
git config --list 查看git的配置
git config --global user.name “666666czp”
git config --global user.email “[email protected]”
git config --global credential.helper store //记住密码
ssh-****** - t rsa -C “[email protected]” // 生成公钥
第一次生成公钥私钥的时候的步骤
1、 cd ~/.ssh //打开ssh目录
2、ssh-****** - t rsa -C “[email protected]” //回车 如果本来有的就覆盖一下 出现 overwrite 输入y 回车 密码可以不用输入
3、ls //查看 id_rsa是私钥 id_rsa.pub 是公钥
4、cat id_rsa.pub //查看
5、复制到git里面就可以了
git clone //url 主要要使用ssh的url
git init 初始化 要拥有.git文件 在不是git环境下开发的项目如果要推送到git仓库中,就要使用git init
git branch 查看
git reset --hard 版本号
git push origin dome-3 --force //force 强制还原
Vue -cli使用教程
which -a vue //查看当前vue的目录
npm install -g @vue/cli //安装vue/cli
vue create Mall //创建项目