When using VS Code I often forget to push changes after a commit. Any extensions or hacks to just push with each commit?
The hooks are all stored in the hooks subdirectory of the Git directory. In most projects, that’s .git/hooks.
- create an executable file called post-commit with no file extension in the hooks directory with the following 2 lines
#!/bin/sh
git push origin master