海运的博客

Cygwin使用Vim插件管理器Vundle错误error setting certificate verify locations解决

发布时间:December 16, 2012 // 分类:Vim,Cygwin // No Comments

Cygwin下使用Vundle通过Github安装VIM插件时提示以下错误:

error: error setting certificate verify locations:
CAfile: /usr/ssl/certs/ca-bundle.crt
CApath: none while accessing https://github.com/
fatal: HTTP request failed

通过apt-cyg安装ca-certificates解决:

apt-cyg install ca-certificates

或跳过CA验证:

export GIT_SSL_NO_VERIFY=1

Linux下Git和GitHub基本使用

发布时间:December 15, 2012 // 分类:Git // No Comments

1.创建Github账号,Linux创建SSH密钥:

ssh-keygen

2.将公钥加入到Github账户信息Account Settings,测试验证是否成功。

ssh -T git@github.com
Hi haiyun.me! You've successfully authenticated, but GitHub does not provide shell access.

3.GitHub创建项目。
4.本地配置,新建Git项目并提交到Github。

touch README.md
git init #初始化,建立本地git仓库
git add README.md #添加文件到本地仓库
git status #查看本地代码库状态
git commit -m "first commit" #提交到本地仓库
git remote add origin git@github.com:user/test.git #和远程代码库建立连接
git remote -v #查看连接
git remote rm origin #删除链接
git pull origin master --allow-unrelated-histories #要更新已存的github仓库先拉到本地再提交
git push origin master #将本地仓库文件提交到Github。

5.复制项目到本地:

git clone git://github.com/user/xxx.git

6.删除GitHub文件:

git rm README.md #本地仓库内删除
git commit -m "rm README.md" #提交到本地
git push -u origin master #提交到Github

7.和远程项目连接,注意不要使用https clone:

git clone git@github.com:user/test.git
git add .
git status 
git commit -m "commit"
git push -u origin main

8.删除回滚到最近的commit:

git reflog
git reset --hard commit_id #回滚到的commit id
git push origin master --force
分类
最新文章
最近回复
  • 海运: 网络,找到相应的url编辑重发请求,firefox有此功能,其它未知。
  • knetxp: 用浏览器F12网络拦截或监听后编辑重发请求,修改url中的set为set_super,将POS...
  • Albert: 啊啊啊啊啊啊啊啊啊 我太激动了,终于好了英文区搜索了半天,翻遍了 pve 论坛没找到好方法,博...
  • jiangker: good, very helpful to me
  • fengfeng: N1 armbian 能有编译下内核吗。。我要开启can 不懂怎么操作
  • 1: 方法一ngtcp2要改下:./configure PKG_CONFIG_PATH=/usr/l...
  • 海运: 关闭服务器
  • 海风: override.battery.charge.low以及override.battery.r...
  • koldjf: 不能过滤
  • 杰迪武士: 此文甚好甚强巨,依照此文在树莓派2 + Rasbian上部署成功 感谢博主美文共赏