Skip to content

Instantly share code, notes, and snippets.

View ky0n's full-sized avatar
🐳

Hendrik ky0n

🐳
View GitHub Profile
@PradyumnaKrishna
PradyumnaKrishna / Commit Date.md
Last active May 12, 2024 05:35
Change Git Commit Date

Change Git Commit Date

  • Commit your git using

    git add -A
    git commit -m "commit message"
    
  • Change time or date of your latest commit

GIT_COMMITTER_DATE="Wed Sep 9 22:00 2020 +0530" git commit --amend --date="Wed Sep 9 22:00 2020 +0530"

@nepsilon
nepsilon / how-to-git-patch-diff.md
Last active May 10, 2024 06:53
How to generate and apply patches with git? — First published in fullweb.io issue #33

How to generate and apply patches with git?

It sometimes happen you need change code on a machine from which you cannot push to the repo. You’re ready to copy/paste what diff outputs to your local working copy.

You think there must be a better way to proceed and you’re right. It’s a simple 2 steps process:

1. Generate the patch:

git diff > some-changes.patch