Skip to content

Instantly share code, notes, and snippets.

@poulou0
Last active April 23, 2023 14:15
Show Gist options
  • Save poulou0/6df3853c73871dc5d4a761fa3bebddec to your computer and use it in GitHub Desktop.
Save poulou0/6df3853c73871dc5d4a761fa3bebddec to your computer and use it in GitHub Desktop.
linux cheatsheet

I like graybird for the windows and numix for openbox theme

  sudo apt install lxappearance greybird-gtk-theme numix-gtk-theme
  • Git

    Change the author
    git rebase -i HEAD~5 -x "git commit --amend --author 'newName <new@email.com>' --no-edit"
    
    git filter-branch --env-filter \
      'if [ $GIT_COMMIT = 1960ee81830d236a1748e9a17ced83a2e5a5b3ea ]
       then
           export GIT_AUTHOR_DATE="Mon Oct 11 21:28:35 2021 +0200"
           export GIT_COMMITTER_DATE="Mon Oct 11 21:28:35 2021 +0200"
       fi'
    
    https://stackoverflow.com/a/454750
    git filter-branch -f --env-filter "GIT_AUTHOR_NAME='newName'; GIT_AUTHOR_EMAIL='new@email.com'; GIT_COMMITTER_NAME='newName'; GIT_COMMITTER_EMAIL='new@email.com';" HEAD
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment