Skip to content

Instantly share code, notes, and snippets.

View T-Damer's full-sized avatar
Code flows through my blood

Daniil Pankov T-Damer

Code flows through my blood
View GitHub Profile
@matthewjberger
matthewjberger / instructions.md
Last active May 16, 2025 08:44
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@gunjanpatel
gunjanpatel / revert-a-commit.md
Last active April 27, 2025 09:56
Git HowTo: revert a commit already pushed to a remote repository

Revert the full commit

Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.

git revert {commit_id}

About History Rewriting

Delete the last commit

Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32:

@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active May 21, 2025 03:51
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@patriques82
patriques82 / Vim cheat sheet
Last active June 29, 2024 08:22
Vim cheat sheet
Vim commands helpsheet
Contents
My .vimrc commands
Basics
Movement
Search and replacement
Buffers and Windows
Buffers
Windows