Git merge a file under a branch, local merge a single file

Update a single file locally

  1. git fetch
  2. git checkout origin/branch name —file path
    Example: git checkout origin/master —file_name

Guess you like

Origin blog.csdn.net/m0_53574149/article/details/128975488