Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Checkout specific file (Question) #891

Closed
focusonesoftware opened this issue Jul 18, 2018 · 4 comments
Closed

Checkout specific file (Question) #891

focusonesoftware opened this issue Jul 18, 2018 · 4 comments
Labels

Comments

@focusonesoftware
Copy link

Hi,

Can I checkout specific file like "git checkout /remote/origin/master filename"?

@focusonesoftware focusonesoftware changed the title Checkout specific file Checkout specific file (Question) Jul 18, 2018
@smola smola added the question label Jul 24, 2018
@PaluMacil
Copy link

Looking at the source for the CheckoutOptions struct, I don't see a way to indicate that you want to checkout a specific file. I'd be interested in looking into this and determining if I can work on adding this. It would be nice if someone else had replied by now to say for sure.

@mcuadros
Copy link
Contributor

Sorry but this is not the right channel to ask questions please post your questions at:
https://stackoverflow.com/questions/tagged/go-git

@PaluMacil
Copy link

@mcuadros Can you instead of closing this tag it as a feature request? When I looked at the CheckoutOptions struct, I was pretty sure this feature isn't available, and I think it would be a likely common need. Marking at as closed because it's a question seems unfortunate for an obvious missing feature.

@PaluMacil
Copy link

If this is marked as a feature request, I think I will be able to get the time to work on it in the next two months. Most repos require PRs to have matching open issues, so I figure reopening would be necessary first.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants