| Function | Shortcut |
|---|---|
| New Tab | ⌘ + T |
| Close Tab or Window | ⌘ + W (same as many mac apps) |
| Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
| Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
| Cycle iTerm Windows | ⌘ + backtick (true of all mac apps and works with desktops/mission control) |
This file contains hidden or 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
| // clear merged branches | |
| git branch --merged | egrep -v "(^\*|master|main|dev)" | xargs git branch -d |
This file contains hidden or 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 config --local include.path ../.gitconfig |
This file contains hidden or 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
| ### macOS Catalina: “App is damaged and can't be opened. You should move it to the trash.” | |
| ``` | |
| sudo xattr -rd com.apple.quarantine '/Applications/Navicat Premium.app' | |
| ``` |
This file contains hidden or 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
| I normally just run git mergetool and it will prompt me if I want to keep the modified file or keep it deleted. This is the quickest way IMHO since it's one command instead of several per file. | |
| If you have a bunch of deleted files in a specific subdirectory and you want all of them to be resolved by deleting the files, you can do this: | |
| yes d | git mergetool -- the/subdirectory | |
| The d is provided to choose deleting each file. You can also use m to keep the modified file. Taken from the prompt you see when you run mergetool: | |
| Use (m)odified or (d)eleted file, or (a)bort? |