Relative Content

Tag Archive for gitvisual-studio-codekeyboard-shortcuts

VS Code shortcut to force `git` to add a file

How do I make a shortcut in VS Code to force git to add a file? EG I keep *.png in .gitignore so image files are ignored, but sometimes I want to add an image file so I can include it in README.md. I can do that EG with git add -f ./dir_name/image.png. Is it possible to make this into a keyboard shortcut in VS Code?