Keil-MDK 使用git管理代码

  1. 安装 git-for-windows 工具

  2. 安装 git-for-windows , 需要选中 Git Bash Here 选项

  3. 在桌面,右键 --> Git Bash Here ,弹出的窗口中,使用以下指令进行设置

    $?git?config?‐‐global?user.name?"xxxxxx" 
    $?git?config?‐‐[email protected]
    $?git?config?‐‐global?core.autocrlf?false 
    
  4. 配置MDK, Tools --> Customize Tool Menu

    • git 提交修改

      • Command: git commit -am
      • Init Folder: 工程相对于工程名.uvprojx 的位置
      • 勾选 Prompt for ArgumentsRun Minized

      1519892743744

    • git 上传

      • Command: git push

      • Init Folder: 工程相对于工程名.uvprojx 的位置

      • 勾选Run Minized

        1519892985279

    • git 下载更新

      • Command: git pull
      • Init Folder: 工程相对于工程名.uvprojx 的位置
      • 勾选Run Minized

      1519893050144

猜你喜欢

转载自my.oschina.net/u/3080113/blog/1627614
今日推荐