How can I use Git in Python | Sololearn: Learn to code for FREE!

+1

How can I use Git in Python

I have installed Git and discord.py on my computer. How can I use Git in Python when somebody sends a command to my bot. I don't need help in Discord, but I do need help in connecting Python with Git.

5/24/2022 4:46:53 PM

Kind_Cat

5 Answers

New Answer

+1

I don't know about any python wrapper for git. But you can run commands from python. So, you could run git commands from the script.

+1

Kind_Cat https://janakiev.com/blog/python-shell-commands/

+1

Kind_Cat Or you can use this python git wrapper. It's better that way. https://github.com/juanbenitopr/python-git-wrapper

0

Mustafa A how can I run commands from Python?

0

Thank you