Skip to content

Instantly share code, notes, and snippets.

View ilqar96's full-sized avatar
🏠
Working from home

ilqar ilqar96

🏠
Working from home
View GitHub Profile
@ilqar96
ilqar96 / repo-reset.md
Created March 10, 2021 15:27 — 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:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
@ilqar96
ilqar96 / deployment_guide.md
Created November 25, 2020 04:48 — forked from vicgonvt/deployment_guide.md
Deployment Guide for Ubuntu Server from Scratch with Laravel
@ilqar96
ilqar96 / mongodb_cheat_sheet.md
Created February 12, 2020 18:08 — forked from bradtraversy/mongodb_cheat_sheet.md
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database