git add add files

  • git add filename adds files to the staging area according to the requested price
  • git add -i Selectively add files. After entering the command, it will display:
    *** Commands ***
      1: status 2: update 3: revert 4: add untracked
      5: patch 6: diff 7: quit 8: help
    What now>
    The command list is displayed here. Enter 4 and press Enter to enter the add untracked interface. The files that can be added will be displayed. Enter the serial number to add the file, and press Enter to end the addition.

Guess you like

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