babun

 

 

css

1 環境

win10 + babun-1.2.0html

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 之類的就表示成功了java

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:27python

Validategit

相關文章
相關標籤/搜索