<style></style>Table of Contents
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
- 登录 github, 点击头像 -> settings -> ssh and gpg keys -> new ssh key
- title 随你喜欢
- 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