Maëlle Salmon on Nostr: New post: "Hack your way to a good Git history" featuring these methods 💫 ...
New post: "Hack your way to a good Git history" featuring these methods
💫 “Squash and merge”: click the right GitHub/GitLab button
💫 “The repeated amend"™️: git commit --amend
💫 “Start from scratch”: git reset --soft + git add (--patch)
💫 “Mix and match your commits”: git rebase -i
https://masalmon.eu/2024/06/11/rewrite-git-history/Published at
2024-06-11 08:13:31Event JSON
{
"id": "9ea86e4d0271f8adc52de8332f4d0a4b02cb4b57522c04f87737f3e1aaac7911",
"pubkey": "12ba6471199a2871f448466b5834b0a9aeea70d6088aab052de24dc48fbff1b9",
"created_at": 1718093611,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/maelle/statuses/112596982927192347",
"activitypub"
]
],
"content": "New post: \"Hack your way to a good Git history\" featuring these methods\n\n💫 “Squash and merge”: click the right GitHub/GitLab button\n\n💫 “The repeated amend\"™️: git commit --amend\n\n💫 “Start from scratch”: git reset --soft + git add (--patch)\n\n💫 “Mix and match your commits”: git rebase -i\n\nhttps://masalmon.eu/2024/06/11/rewrite-git-history/",
"sig": "76897ce8ce72e35ed3bb91cd7b3773b023270a44c7a8bf356985b42f9129571a40f19b6201574a1708e2088091f0b0f065c0b1dc1ac5899fc1eb1cd97dd4a1a3"
}