Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only commit some staged files using GitPython #1046

Closed
Imipenem opened this issue Aug 6, 2020 · 0 comments
Closed

Only commit some staged files using GitPython #1046

Imipenem opened this issue Aug 6, 2020 · 0 comments
Labels
Q&A

Comments

@Imipenem
Copy link

@Imipenem Imipenem commented Aug 6, 2020

Hey,

I'm wondering if there's a way using GitPython to only commit certain staged files like one can do using git commit [some files].

Is this possible? I searched the documentation and tried passing a list with only some files to the git.commit() but it threw the following error: Parent commit ''.cookietemple.yml'' must be of type <class 'git.objects.commit.Commit'>

Closing this one cause basically the same question as #985

@Imipenem Imipenem closed this Aug 6, 2020
@Byron Byron added the Q&A label Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.