Skip to content

Git

Git ,网站 https://git-scm.com/ 。在纯文本版本控制,Git 是事实标准。

Git Cheat Sheet ,网址 https://git-scm.com/cheat-sheet

Windows 安装 Git ,附带安装 Git Bash ,可以使用 openssl、sed 等命令。

在 Git Bash ,鼠标右键:

  • Paste (Shift + Insert)
  • Select All
  • Save as image
  • Search (Alt + F3)
  • Reset (Alt + F8)
  • Default size (Alt + F10)
  • Scrollbar
  • Full screen (Alt + F11)
  • Flip screen (Alt + F12)
  • Status line
  • Options...

Git Bash 修改配置,会生成配置文件 ~/.minttyrc 。

安装完成后,需要配置邮箱和用户名,一般是全局配置,也可以局部配置,配置文件在 ~/.gitconfig 。

git config --global user.email "your.email@abc.com"
git config --global user.name "Your Name"

查看配置。

git config --global --list

生成 SSH 密钥,用于远程仓库。

联系 math@baima.site