I am making a program that I want to be able to natively update when the GitHub repository is updated. Is there any way I can be able to do this with python? I have looked it but nothing has helped. I would need this to work on other PC's than my own. Thank you!
CodePudding user response:
If there's no way the third party can use Git directly and you really want to stick to Python, maybe you should try GitPython. You can write a reoccuring script that pulls the repo every now and then.
CodePudding user response:
If you want some information from a GitHub
repository that you own, a better idea is to download git
or GitHub Desktop
to manage your clone easily.
In particular, if you want to update your local clone
with the commits push
ed to the remote repository, you just have to run the command git pull
.
You just have to open Git Bash
, go to your clone repository's path, and write git pull
.
user@DESKTOP-D9F15J2 MINGW64 /d/C /Labirint (main)
$ git pull