Skip to content

Instantly share code, notes, and snippets.

View MohammadxAli's full-sized avatar
:electron:
Focusing

Mohammad Ali Shahbazi MohammadxAli

:electron:
Focusing
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
\{\/\*(.*)\*\/\}