git查看远端文件(skip-worktree状态中的文件管理)
gitshow origin/main:path/to/file.ext上面是查看远端文件内容。
启用skip-worktree状态:
gitupdate-index --skip-worktree path/to/file.ext解除skip-worktree状态:
gitupdate-index --no-skip-worktree path/to/file.extgitshow origin/main:path/to/file.ext上面是查看远端文件内容。
启用skip-worktree状态:
gitupdate-index --skip-worktree path/to/file.ext解除skip-worktree状态:
gitupdate-index --no-skip-worktree path/to/file.ext