fboender / multi-git-status

Show uncommitted, untracked and unpushed changes for multiple Git repos
MIT License
470 stars 73 forks source link

Fork changes undetected #54

Closed danispringer closed 1 year ago

danispringer commented 1 year ago

I created a fork from a repo on GitHub and pulled my version to my machine via Git. Later, I updated my fork from the original repo via GitHub, and running "multi git status" on my machine said "no changes". However going into the folder of the forked repo, and running "git pull", did find those changes and pull them.

Would it be possible to detect such changes in the future?

Thanks!

fboender commented 1 year ago

Have you tried using the -f option? Multi-git-status doesn't contact the remote repo by default, so it only knows about changes there if you use -f. This does a non-destructive (I hope) git fetch on the repo before checking the status.

danispringer commented 1 year ago

@fboender thanks! Any way to verify it is indeed non destructive?

fboender commented 1 year ago

As far as I know, it's non-destructive. This stackoverflow post answer seems to agree:

git fetch updates your remote-tracking branches under refs/remotes//. This operation is safe to run at any time since it never changes any of your local branches under refs/heads.

But uh.. maybe make a copy of your repo just in case? ;-)

I'm gonna go ahead and close this issue. Feel free to re-open in case it's needed!

danispringer commented 1 year ago

@fboender Thank you!