# [RFE]: git submodule commit push

3 messages from 2020-01-16 to 2020-01-16. Participants: Randall S. Becker, Andreas Schwab.
Thread: https://gitlist.dev/t/52651

## Randall S. Becker, 2020-01-16 17:00

Subject: [RFE]: git submodule commit push
Message-ID: <005801d5cc8e$7ae618e0$70b24aa0$@nexbridge.com>
URL: https://gitlist.dev/e/005801d5cc8e%247ae618e0%2470b24aa0%24%40nexbridge.com

```
Hi All,

I'm finding that I have a frequent need to commit and push submodule changes
because the submodule is currently subject to a whole bunch of changes. The
submodule is pretty deep down in the java path of a maven project - so 7
directories down from the git root. It's a bloody pain to constantly change
directories to get down there and back up to where I am working. If IntelliJ
supported submodules explicitly, I might not be whining about this, but I'm
having to swap to the CLI.

My suggestion is that provision be made for the support of

git submodule commit [ --recursive ] [--] [<path>.]

and

git submodule push [ --recursive ] [--] [<path>.]

with all the trappings that come with commit and push. I have a feeling this
is a pretty big ask, as it will really pulling in a lot of other commands,
including add.

Am I barking up the wrong tree?

Thanks,
Randall

-- Brief whoami:
 NonStop developer since approximately 211288444200000000
 UNIX developer since approximately 421664400
-- In my real life, I talk too much.




```

## Andreas Schwab, 2020-01-16 19:46

Subject: Re: [RFE]: git submodule commit push
Message-ID: <875zhbmbg3.fsf@igel.home>
URL: https://gitlist.dev/e/875zhbmbg3.fsf%40igel.home
In-Reply-To: <005801d5cc8e$7ae618e0$70b24aa0$@nexbridge.com>

```
On Jan 16 2020, Randall S. Becker wrote:

> I'm finding that I have a frequent need to commit and push submodule changes
> because the submodule is currently subject to a whole bunch of changes. The
> submodule is pretty deep down in the java path of a maven project - so 7
> directories down from the git root. It's a bloody pain to constantly change
> directories to get down there and back up to where I am working.

You can also use git -C <path> ...

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

```

## Randall S. Becker, 2020-01-16 19:54

Subject: RE: [RFE]: git submodule commit push
Message-ID: <006201d5cca6$d3dbea20$7b93be60$@nexbridge.com>
URL: https://gitlist.dev/e/006201d5cca6%24d3dbea20%247b93be60%24%40nexbridge.com
In-Reply-To: <875zhbmbg3.fsf@igel.home>

```
On January 16, 2020 2:46 PM, Andreas Schwab wrote:
> On Jan 16 2020, Randall S. Becker wrote:
> 
> > I'm finding that I have a frequent need to commit and push submodule
> > changes because the submodule is currently subject to a whole bunch of
> > changes. The submodule is pretty deep down in the java path of a maven
> > project - so 7 directories down from the git root. It's a bloody pain
> > to constantly change directories to get down there and back up to where
I
> am working.
> 
> You can also use git -C <path> ...

Yes, and I could also set up an alias, which I did, but it still seems like
submodule operations might be made more convenient from anywhere in the
parent repo in general. Just a suggestion for discussions.


```
