Skip to content

Instantly share code, notes, and snippets.

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

oshan silva oshan2csd

🏠
Working from home
  • Melbourne
View GitHub Profile

Case 1: Don’t care about local changes

Solution 1: Get the latest code and reset the code

git fetch origin
git reset --hard origin/[tag/branch/commit-id usually: master]

Solution 2: Delete the folder and clone again :D

rm -rf [project_folder]

@oshan2csd
oshan2csd / MongoDbCommands.md
Created May 1, 2020 01:42
MongoDB Shell Command Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database