babun

 

 

Table of Contents

  • 1. 环境
  • 2. 检查/更新
  • 3. 包管理
  • 4. 版本管理 Git
    • 4.1. 设置姓名邮箱(全局方式)
    • 4.2. 添加 SSH
    • 4.3. 链接测试
    • 4.4. 权限错误/Permission denied(参考)

1 环境

win10 + babun-1.2.0

2 检查/更新

babun check
babun update

3 包管理

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

Usage:
  "pact install " to install given packages
  "pact remove " to remove given packages
  "pact update " to update given packages
  "pact show" to show installed packages
  "pact find " to find packages matching patterns
  "pact describe " to describe packages matching patterns
  "pact packageof " to locate parent packages
  "pact invalidate" to invalidate pact caches (setup.ini, etc.)
Options:
  --mirror, -m  : 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 "[email protected]"

4.2 添加 SSH

初始化 SSH
C:\Users\(用户名)\.babun\cygwin\home\admin\.ssh(默认路径)
ssh-keygen -t rsa -C "[email protected]"
设置 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 之类的就表示成功了

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

你可能感兴趣的:(babun)