My Git HEAD is pointing to a commit that is not the last one committed so I would like to get that commit. Is it possible through the GitLab API? If so how can I do it from Python or a curl command?
In case GitLab does not provide any mechanism to do so, how can I do it using a Git command from Python?