Mac使用总结

显示隐藏文件

终端输入:defaults write com.apple.finder AppleShowAllFiles -bool true; KillAll Finder

添加SSHKey

Mac下SourceTree使用的SSHKey不在软件中指定,需要向系统添加此Key,步骤:

  1. 将密钥文件放入 用户目录/.ssh/ 下 (此为隐藏文件夹)
  2. 修改密钥文件权限为600:
    • 终端输入:sudo chmod 600 ~/.ssh/密钥文件名
  3. 向系统添加SSHKey:
    • 终端输入:ssh-add -K ~/.ssh/密钥文件名
原文地址:https://www.cnblogs.com/guiguixyz/p/5947124.html