-
Hoping to add all files in the directory using Calling the following: repo.index.add(['.']) Stages the |
Beta Was this translation helpful? Give feedback.
Answered by
Byron
May 21, 2022
Replies: 1 comment
-
By default, I recommend using |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Byron
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
repo.index
can't be used for cases like this as it's not a complete implementation of 'pathspecs'. It's a much narrower implementation that can be considered 'expert mode'.By default, I recommend using
repo.git.add('.')
instead to have the work done bygit
instead.