git checkout a single file from another branch and put in different folder

You have 2 options

  1. chain 2 commands, git checkout other_branch -- file.txt && git mv file.txt folder/file.txt
  2. or you can use worktree

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)