Revert back to the previous dev version of a module using composer Current last dev release of the Field Group module for drupal 8 was out on (29 Mar 2019).
However, I need to download the previous dev version before the dev version release mentioned above.

The last dev release was out on (29 Mar 2019)

but I need the previous dev version which was out on (10 May 2017)

It is important for me to record this specific dev version in composer.json file so the same dev version of the module will be used on all environments.

How can I do that ?

Note: i can use any of Composer, Git or Drush commands.
You have to refer to the dev branch and reference the SHA of the version of dev you want in Composer.

Example:

composer require drupal/field_group:3.x-dev#COMMITSHA

This will fetch the dev branch of version 8.x-3.x at this specific commit. To get that commit itself, you’ll have to find it on the git page for the project ( which now goes to GitLab).

I can’t find the exact one you are looking for (I’m on mobile) but here is an example.

https://git.drupalcode.org/project/field_group/commit/a4bd38698187c30184d5c76fd884be86e2091fe7

So you’d do:

composer require drupal/field_group:3.x-dev#a4bd3869