Skip to content

Instantly share code, notes, and snippets.

View HaiNNT's full-sized avatar

Nguyễn Ngọc Thanh Hải HaiNNT

View GitHub Profile
@HaiNNT
HaiNNT / git-undo-changes-cheat-sheet.md
Last active January 10, 2023 03:14
git-cheat-sheets

Git undo changes cheat sheet

Unstaged a file or directory

git reset path/to/file_or_dir
or
git restore --staged path/to/file_or_dir
@HaiNNT
HaiNNT / async-await.js
Created September 16, 2019 02:07
ES6 Promise and async/await best practice
//

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: