Skip to content

Instantly share code, notes, and snippets.

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

Santosh Rai santosrai

🏠
Working from home
View GitHub Profile
How to clone repository with specific commit?
1. View all commits and copy commithash
- git log
2. Clone repo
- git clone <url>
3. Goto Project folder
- cd $PROJECT_NAME
4. Checkout with commithash
- git checkout [commithash]
@santosrai
santosrai / index.md
Last active March 18, 2020 00:51
EveryProgrammerShouldKnow

EveryProgrammerShouldKnow

This is my note to level up my programming capabilities.

2019

  • Coding that should be (Taken from https://qr.ae/TUfSEN)
    • If code isnot tested, it won't work.
    • Don't reinvent the wheel, library code is there to help.
    • Code is not self documenting. Help others by adding comments to guide them. You may understand it now but what about in 5 years time?
    • There is no such thing as a 5 minute job. It'll always take at least half a day.
    • A code review is not a criticism.
  • Code rots over time.
@santosrai
santosrai / GitCommitEmoji.md
Created March 11, 2018 23:04 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji