Commands within a job

I have command that fetch a git submodule in a command A.
lets say in command B i want to use this submodule.
so if the commands are under the same job like:
my_job:
executor: py27
steps:
- commandA
- commandB

It should work fine?

If the commands are in the same CircleCI job, then any files added from a previous step, including run steps, would be available to the next steps as well.

If these were in different jobs, you’d want to make use of something like presist_to_workspace and attach_workspace to connect those files to the following job.