git: how to update (checkout) a single file from remote origin master - Stack Overflow
It is possible to do (in the deployed repository)
git fetch
followed by
git checkout origin/master -- path/to/file
git fetch will download all the recent changes, but it will not put it in your current checked out code (working area).
git checkout origin/master -- path/to/file will checkout the particular file from the the downloaded changes (origin/master).
At least this works for me for those little small typo fixes, where it feels weird to create a branch etc just to change one word in a file.
Read full article from git: how to update (checkout) a single file from remote origin master - Stack Overflow
No comments:
Post a Comment