Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The process for identifying all the commits made on a branch between two specific commits is as follows:

  1. Open the command line or terminal on your system.

  2. Navigate to the local repository where you want to identify the commits.

  3. Use the git log command to display the history of commits for the branch. For example, if you want to display the commit history for the master branch, you can use the command:

git log --oneline master
  1. Identify the SHA hashes of the two specific commits between which you want to identify all the commits. You can obtain the SHA hash of a commit by looking at the first few characters of the commit ID displayed in the log output.

  2. Use the git log command again, but this time specify the two SHA hashes as the range of commits. For example, if you want to identify all the commits made on the master branch between the 5th and 10th commits, you can use the command:

git log --oneline 5th_commit_sha..10th_commit_sha

This will display a list of all the commits made on the master branch between the two specified commits, along with their commit messages and SHA hashes.