tags:

views:

35

answers:

1

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  A: 

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.

VonC
I am not actually using GIT to move code to production server, sorry bad way of saying it.
Blankman
@Blankman: all right, but then are you still pushing your data to another repo? (or actually merging them to a '`production`' branch within the same repo?)
VonC