5

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?

Blankman
  • 259,732
  • 324
  • 769
  • 1,199

1 Answers1

1

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.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I am not actually using GIT to move code to production server, sorry bad way of saying it. – Blankman Jul 01 '10 at 23:28
  • @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 Jul 02 '10 at 03:48