I work in several projects, with other people, that evolve according to requests from our clients. More often than not, I'm completely submerged in my current work and do not get updates about what is going on in the rest of the projects. So I do a "complete fetch" each morning so I don't get completely lost. I have worked out a shell script that does that for me, so it changes to each project's directory, show where it's at, and fetches (no pull) and returns me to wherever I was (beware, it is all one line, just broke it down to help reading):
$ pushd . && cd /W/Git/project1 && pwd && git fetch
&& cd /W/Git/project2 && pwd && git fetch
&& cd /W/Git/project3 && pwd && git fetch && popd
I just read a bit about remote. that would be updated with git fetch
:
git fetch can fetch from either a single named repository or URL, or from several repositories at once if is given and there is a remotes. entry in the configuration file.
So I think git fetch remote.<group>
would very well fit the purpose of my monstrous command line, simplifying maintenance and memory. But I could not find direct reference at how to define such a remote.<group>.
Anyone can give me a command line example?
I think git fetch remote. would very well fit the purpose of my monstrous command line
I don't think so. You cannot update 3 different projects with one fetch anyway so no group will help you.