Skip to content

Instantly share code, notes, and snippets.

View nraval1729's full-sized avatar
😎
Never stop learning

Nisarg Raval nraval1729

😎
Never stop learning
  • Wetherby, United Kingdom
View GitHub Profile

Keybase proof

I hereby claim:

  • I am nraval1729 on github.
  • I am nraval1729 (https://keybase.io/nraval1729) on keybase.
  • I have a public key ASCJPdplWSkCi_kDmNLXhoLnaayAkV9K_QHPOkUucuw_fwo

To claim this, I am signing this object:

@nraval1729
nraval1729 / 19_sept.txt
Created September 19, 2018 05:03
Things I recently learned on the job
git add -p. The -p flag is called the patch flag, and can also be invoked by using --patch. It's description (by running git add -h) says it "select hunks interactively". What this basically means that if you have multiple changes in a single file, this command invokation will ask you if you want to commit each of them individually. This is super helpful if you have a ton of changes, and you want to selectively commit them in different commits.