Skip to content

Instantly share code, notes, and snippets.

View mohammadxali's full-sized avatar

Mohammad Ali Shahbazi mohammadxali

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"
@mohammadxali
mohammadxali / 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
@mohammadxali
mohammadxali / jsx-comments
Created January 11, 2022 08:17
Regex to select all JSX comments
\{\/\*(.*)\*\/\}