Keil-MDK uses git to manage code

  1. Install the git-for-windows tool

  2. To install git-for-windows , you need to select the Git Bash Hereoption

  3. On the desktop, 右键--> Git Bash Here, in the pop-up window, use the following commands to set

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

    • git commit changes

      • Command:git commit -am
      • 工程名.uvprojxInit Folder: The location of the project relative to
      • check Prompt for ArgumentsandRun Minized

      1519892743744

    • git upload

      • Command:git push

      • 工程名.uvprojxInit Folder: The location of the project relative to

      • checkRun Minized

        1519892985279

    • git download update

      • Command:git pull
      • 工程名.uvprojxInit Folder: The location of the project relative to
      • checkRun Minized

      1519893050144

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325199318&siteId=291194637