Skip to content

Instantly share code, notes, and snippets.

@queglay
Last active May 16, 2020 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save queglay/37bbcc397885face0d3f71cd915b54fb to your computer and use it in GitHub Desktop.
Save queglay/37bbcc397885face0d3f71cd915b54fb to your computer and use it in GitHub Desktop.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment