This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git update-index --assume-unchanged [path] | |
git update-index --skip-worktree [path] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 % |