How do you check for differences? #1159
-
Bit of a n00b question so apologies in advance. I am trying to write a little script that,
I have found several ways of checking for changes but none seem to work. Each time, I tested by making a change in my sandbox repo directly on GitHub and then executed the pull, so that the change is applied on my PC. For example,
Always appears to output an empty list. This seems to be what the tutorial suggests so I'm not sure why it does not work.
Always returns
When I checked the output when there was a change vs the output where there was no change, both outputs were the same. What am I doing wrong here? I have also found a SO question that was asked some time ago but never answered, so I'm not alone in this! Comments in that suggested What is the best way to check if a pull has introduced changes since the last pull? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Found the problem! I was doing the
Not sure if this is the best way to do it, but it appears to work. Would still be grateful of any guidance. |
Beta Was this translation helpful? Give feedback.
-
Thanks for posting your findings here, I believe that's exactly how you would do it! Great work! |
Beta Was this translation helpful? Give feedback.
Found the problem! I was doing the
pull
in the wrong place.Not sure if this is the best way to do it, but it appears to work. Would still be grateful of any guidance.