DEV Community

Cover image for How to check if the folder is Git repo and in sync?
Madza
Madza Subscriber

Posted on

How to check if the folder is Git repo and in sync?

Opening a separate folder and running git remote -v and git status every time just to see the status between local and remote repositories might be repetitive and ultimately time-consuming.

I remember Google Drive had a way to mark the folders by the green tick mark, that way the user automatically knew if the folder is backed-up in Google Drive and in sync.

Alt Text

Could you recommend similar solutions for GitHub projects, so the user can get the overview in the root (without opening the projects) and without running commands in the terminal?

Top comments (4)

Collapse
 
fennecdjay profile image
Jérémie Astor

You might be able to show it in your terminal prompt.
I use Powerlevel10K, and when I'm in a git directory, it shows wether there are commit ahead/behind the remote, staged files, modified ones, stashes and what not.
Hope it helps.

Collapse
 
moopet profile image
Ben Sinclair

I know tortoisegit does what you want, and it's been around for years and years (as tortoisesvn for one thing).

I'm not sure if it's the "modern" solution because I don't use it, but... it might be!

Collapse
 
madza profile image
Madza • Edited

Thanks so much for the recommendation 👍
Never came across it, will surely check it out 😉

Collapse
 
davidmaceachern profile image
David MacEachern

There's also an official app which might provide the type of status you want desktop.github.com/.