Git does not provide a way to clone (checkout) a single file. You must clone some portion of the repository and then checkout a branch that contains the file you need.
----- Original Message ----- From: [email protected] To: [email protected] At: Apr 10 2014 12:29:31 look at sparse checkout as one way you might do that. On Apr 10, 2014 10:25 AM, <[email protected]> wrote: Hi Folks, I'm trying to checkout a specific file from GIT using Jenkins, I didn't any way how to get a specific file form GIT. Could any one tel how to do this by using jenkins or GIT command. we are accesing git through STASH my repository is like ssh://[email protected]:7999/repo/test.git there are 100 files in test, my requirement is checkout a specific file from test folder.-- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. ------------------------------------------------------------------------------- -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
