S
S
Sergey Burduzha2020-07-29 13:03:08
git
Sergey Burduzha, 2020-07-29 13:03:08

How to see if all projects that have a repository on github are running?

Good afternoon.
I work in ubuntu.
There are projects that I work with, and there are also several directories where I store my settings.
All projects are git related.

Sometimes when I'm done I forget to push a project I've been working on or change a setting.

Then I come home and see that there are no such changes.

Is it possible to see all the projects that have changed and need to be pushed to github with one action in the terminal?

Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
paran0id, 2020-07-29
@paran0id

For example like this:

cd ~/git
for project in `ls --color=never .`; do echo "=== $project ==="; git --git-dir="./$project/.git/" status; done

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question