Skip to content

Instantly share code, notes, and snippets.

View rajayonin's full-sized avatar

Luis Daniel Casais rajayonin

View GitHub Profile
@ammarshah
ammarshah / git_rebase_with_filter_repo.md
Created October 16, 2023 15:21
Remove commit(s) from git repository using rebase while keeping the original commit dates

Example Usage of git-rebase with git-filter-branch and git-filter-repo

You can rewrite commits using either git-filter-branch or git-filter-repo but the latter one is recommended. See why.

1. Check Logs

There are two types of dates in a git commit: AuthorDate and CommitDate.

When you run git log, the date you see with every commit is the AuthorDate while GitHub repository shows the CommitDate.

<template>
<render-component :key="count" />
<span @click="renderComponent">Click to reload render-component</span>
</template>
<script>
import { ref } from 'vue'
export default {
name: 're-render',
@musale
musale / remove.sh
Created June 20, 2017 14:46
Remove and re-install node on arch linux
sudo pacman -Rsc -n nodejs
sudo pacman -Sy nodejs
sudo pacman -Sy npm