-
Hi team, I looked into remote and diff part of the documentation & API but couldn't find a way to achieve git diff between local and remote repo. Here's what I am trying to achieve:
The above code works sucessfully to pull the changes, but I only want to pull only if there's any update in the remote repo. Not sure how to achieve this. Basically I want Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @hcheruku , if I understand you correctly, you would like to diff a local state against the state in a remote repository, without actually fetching data to local. This is not possible with git. However, removing that constraint, you can always fetch the data first, then diff or compare the commit hash the local branch and remote branch points to. It would certainly help to understand the problem you are trying to solve. In the mean time, I will close this issue, feel free to keep posting in the comments. |
Beta Was this translation helpful? Give feedback.
-
Hi Byron, Thank you so much for replying. Just want to know how to do git diff local remote using gitpython. Thanks |
Beta Was this translation helpful? Give feedback.
-
nevermind! I did it.
It works! |
Beta Was this translation helpful? Give feedback.
nevermind! I did it.
Here's what I did:
It works!
Thanks for replying
Have a great day ahead :-)