Stages the .git
folder and all its history.
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 by git
instead.
-
Hoping to add all files in the directory using Calling the following: repo.index.add(['.']) Stages the |
Beta Was this translation helpful? Give feedback.
-
By default, I recommend using |
Beta Was this translation helpful? Give feedback.
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.