windows git use keepass
安装git:
安装chocolatey 在CMD下管理员运行以下命令: @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" 安装没有报错运行: choco -? 有相应提示则安装成功
安装 git 和 curl choco install -y git choco install -y curl
编辑环境变量 gvim的安装路径 HOME
vim _vimrc
set rtp+=$HOME\vimfiles\bundle\Vundle.vim\ call vundle#begin('$HOME\vimfiles\bundle\') Bundle 'Valloric/YouCompleteMe' filetype plugin on
使用git上传keepass
- 打开windows git bash
- ssh-keygen //生成id_rsa密钥 cat id_rsa.pub //由于git是在vim中安装的所以.ssh在vim安装目录中
- 打开阿里云code 在home profile sshkeys中添加id_rsa.pub
- cd /d/keepass/
- git config --global user.name "test" git config --global user.email "[email protected]" git init git remote add origin [email protected]:test/keepass.git git add -A git commit -m "first submit" git push origin maste