Skip to content

Instantly share code, notes, and snippets.

View sabarnix's full-sized avatar

Sabarni Das sabarnix

  • Media.net
  • Bengaluru
View GitHub Profile
@sabarnix
sabarnix / gist:663bc8a7d31b83ea4f931a6ef4878756
Last active June 5, 2020 19:23
stop tracking and ignore changes to a file in Git
git update-index --assume-unchanged [path]
git update-index --skip-worktree [path]
@sabarnix
sabarnix / Vim
Created July 12, 2019 10:57 — forked from mithildeeva/Vim
Vim handy commands
1. Copy/duplicate current line (on the next line)
- In normal mode,
:t.
2. Duplicate line on line 7
- In normal mode,
:t 7
3. Save changed file as sudo which was opened as a user with less access
:w !sudo tee %