1. 首选安装。

2. 打开Git Bash
3. 输入,就是配置一下用户名啥的
$ git config --global user.name "Jack Liao"
$ git config --global user.email jack.liao@example.com
4. 列出当前配置,看看对不对,没其他用处
$ git config --list
5. 用cd命令进入所在目录,初始化,,我觉的这一步会把文件夹里面的所有文件添加进去的,不知道对不对?
$ git init
6. 添加文件,添加文件夹我不会
$ git add file.txt
7. 生成patch
$ git diff >  0001-test-qhq.patch
8. 提交变更
$ git commit -a

相关文章:

  • 2021-05-09
  • 2021-04-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-22
  • 2022-02-28
  • 2022-12-23
猜你喜欢
  • 2021-09-08
  • 2021-06-09
  • 2022-03-03
  • 2022-01-02
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案