I want to somehow tag the codebase when I push it to production, so that next time when I want to push to production I can do a diff and see exactly what files changed since the last time.
How can I do this with GIT?
Also, how can I list all production builds?
1/ Remember than "pushing to production" is not always the ideal way to put your code in a production environement.
2/ You would have to use a Git hook on the "server" side (i.e. here the Git on the production side, like the the post-receive
one to put a annotated tag on what you just received.
Those tags can be then fetch by the first repo, and used to git diff
two of those tags.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With