Skip to content

Instantly share code, notes, and snippets.

View danielvartan's full-sized avatar

Daniel Vartanian danielvartan

View GitHub Profile
@danielvartan
danielvartan / repo-reset.md
Last active November 14, 2022 23:40 — forked from heiswayi/repo-reset.md
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Before start, disable all branch protections related to the manipulated branchs.

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH
@danielvartan
danielvartan / markdown_guide.md
Created August 19, 2020 05:43 — forked from cuonggt/markdown_guide.md
The Ultimate Guide to Markdown

Markdown Guide

The Ultimate Guide to Markdown

Basic Markdown Formatting

Headings

# This is an <h1> tag

This is an tag