How to download (pull) a specific file from git

Hi,
I’m new to this and git, can anyone explain how can I download a particular pull request like https://github.com/frappe/frappe/pull/8009/commits/577f3c8897530c5cf054a6a420045f01c624f71f from github to my system via Putty command line . If I’m not wrong this will only change the 2 files involved in this pull request right ?
How does this work? do I manually change these files or will it be automatically changed and more importantly how to get this pull request. Please help as I’m new to this

Hello @atharva_naik

If you have the frappe:version-12-hotfix branch pulled on your instance. You can use git checkout command to replace existing files from other commits.

You may want to checkout this link: https://stackoverflow.com/questions/7539130/go-to-particular-revision

Regards,

Ivan

1 Like

Hi @atharva_naik

You can pull a specific pull request

git fetch origin pull/ID/head:BRANCHNAME

You may want to checkout this link: Checking out pull requests locally - GitHub Docs