Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upOnly commit some staged files using GitPython #1046
Closed
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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