To install latest git on centos 7, use an RPM. building from source without an rpm will result in a dependency breaking it later (eg installing gitlab) https://medium.com/better-programming/install-git-v2-on-centos-7-49448deede19
To configure gitlab runner, ensure these lines are present.
concurrent = 2
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "workstation-dev"
limit = 1
executor = "shell"
output_limit = 16384
[runners.custom_build_dir]
enabled = true
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
To revert git commits without rewriting history and accounting for merges -
git diff HEAD commit_sha_you_want_to_revert_to | git apply
Occaisionally the patch may not be applied. Provided there are no merges, you can also use git revert. https://mijingo.com/blog/reverting-a-git-merge