Stages files matching the given patterns and creates a commit with the specified message. Convenience function that combines stage() and commit(). Throws an error on commit failure by default.
stage()
commit()
Optional
Use object params version
Stages files matching the given patterns and creates a commit with the specified message. Convenience function that combines
stage()andcommit(). Throws an error on commit failure by default.