Powdrsoft Solutions AB
  • Search
  • Notes
  • Blog
  • Tags
  • About

Git

Force pull

git reset --hard origin/main

Force push

git push -f

Go back 3 commits

git reset --hard HEAD~3

Tig - Text-mode interface for git

Jonas.github.io/tig/

sudo apt-get install tig

Add custom bindings to .tigrc

https://github.com/jonas/tig/wiki/Bindings

Git 
  Modified on Jun 3, 2019
  • ← Previous Note
  • Next Note →

Tobias Ericsson  • © 2024  •  Powdrsoft Solutions AB