babun

 

 

1 环境

win10 + babun-1.2.0

2 检查/更新

babun check
babun update

3 包管理

pact --help
pact: Installs and removes Cygwin packages.

Usage:
  "pact install <package names>" to install given packages
  "pact remove <package names>" to remove given packages
  "pact update <package names>" to update given packages
  "pact show" to show installed packages
  "pact find <patterns>" to find packages matching patterns
  "pact describe <patterns>" to describe packages matching patterns
  "pact packageof <commands or files>" to locate parent packages
  "pact invalidate" to invalidate pact caches (setup.ini, etc.)
Options:
  --mirror, -m <url> : set mirror
  --invalidate, -i       : invalidates pact caches (setup.ini, etc.)
  --force, -f : force the execution
  --help
  --version

4 版本管理 Git

 

4.1 设置姓名邮箱(全局方式)

git config --global user.name "username"
git config --global user.email "123@qq.com"

4.2 添加 SSH

初始化 SSH
C:\Users\(用户名)\.babun\cygwin\home\admin\.ssh(默认路径)
ssh-keygen -t rsa -C "123@qq.com"
设置 SSH
  1. 登录 github, 点击头像 -> settings -> ssh and gpg keys -> new ssh key
  2. title 随你喜欢
  3. key 中粘贴~/.ssh/idrsa ~/.ssh/idrsa.pub文件中的字符串

4.3 链接测试

出现 hi username, You've successfully authenticated 之类的就表示成功了

ssh -T git@github.com

4.4 权限错误/Permission denied(参考)

chmod 755 ~/.ssh/
chmod 600 ~/.ssh/id_rsa ~/.ssh/id_rsa.pub
chmod 644 ~/.ssh/known_hosts

Created: 2019-06-25 周二 14:27

Validate

转载于:https://www.cnblogs.com/heidekeyi/p/11082650.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值