Skip to content

Instantly share code, notes, and snippets.

View inf1nite-lo0p's full-sized avatar

inf1nite-lo0p

View GitHub Profile
GIT_COMMITTER_DATE="DATE_HERE" git commit --amend --no-edit --date "DATE_HERE"
Iran date format: Mon 20 Aug 2022 20:00:00 IRDT
British date format: Mon 20 Aug 2022 20:00:00 BST
Example:
GIT_COMMITTER_DATE="Mon 20 Aug 2022 20:00:00 IRDT" git commit --amend --no-edit --date "Mon 20 Aug 2022 20:00:00 IRDT"
@inf1nite-lo0p
inf1nite-lo0p / Remove file wrongly committed
Last active June 1, 2022 15:37
Remove a big file wrongly committed
git filter-branch --tree-filter 'rm -rf path/to/your/file' HEAD
@inf1nite-lo0p
inf1nite-lo0p / jsx-comments
Created January 11, 2022 08:17
Regex to select all JSX comments
\{\/\*(.*)\*\/\}