how to create .bash_profile in windows using git bash

844 阅读1分钟

需要创建一个文件叫bash_pofile, 专门设置git版的windows下面的bash终端。

  1. cd ~ //切换到用户目录
  2. touch .bash_profile //创建file
  3. nano .bash_profile //打开file
  4. 添加 alias gs='git status' 退出再测试下是否成功