git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git log of all (modifying) commands run on a repo?
@ 2007-02-07 22:15 Bill Lear
  2007-02-07 22:29 ` Jakub Narebski
  2007-02-07 22:49 ` Linus Torvalds
  0 siblings, 2 replies; 25+ messages in thread
From: Bill Lear @ 2007-02-07 22:15 UTC (permalink / raw)
  To: git

Our company recently switched to git.  Our enthusiasm for git outweighs
the problems we have encountered so far, universally those of user
befuddlement, not git problems per se.

I have destroyed several repos by accidentally pulling from or pushing
to the wrong branch, not realizing this until later, and, trying what
I thought the proper way to undo it, failed that miserably.  I have
destroyed a few other repos by pulling from a "polluted" repo of a
co-worker that had mistakenly merged things in, and have had to resort
each time to full-scale reconstructions (again, almost trivially
accomplished thanks to git).  Thankfully, our company repo is so far
pristine, and I have been able to quickly reconstruct things and
continue working.

A co-worker just called to say he apparently had done something
similar, as he tried to pull from our company repo, got a conflict,
and then discovered files and changes to files that should not have
been on the master branch.  These files and changes do not exist in
our company repo, of that we are certain.

I'm not certain how I managed to screw up my repo, and he is equally
unsure of how he managed to screw up his.

I thought that it would be very useful to have a history of git
commands that have been run against a repo, in order to hopefully
debug this sort of thing --- perhaps only those that modify the repo.

I suppose this would need to include information about which branches
were affected as well.

% cat .git/repo.log
[....]
2007-02-07 10:05:44 git pull . .....
** Pull from master branch onto project branch
** Pull from foobar branch onto boobar branch
** ...
2007-02-07 10:05:44 git pull git://source/project master:project
** Your explanation here...

Would this sort of thing be easy to do?  I presume git does not
currently have support for this, but thought I would ask.


Bill

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2007-02-08 18:37 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-07 22:15 Git log of all (modifying) commands run on a repo? Bill Lear
2007-02-07 22:29 ` Jakub Narebski
2007-02-07 22:39   ` Bill Lear
2007-02-07 22:59     ` Jakub Narebski
2007-02-07 22:49 ` Linus Torvalds
2007-02-07 22:56   ` Junio C Hamano
2007-02-07 23:03     ` Shawn O. Pearce
2007-02-07 23:26     ` Linus Torvalds
2007-02-07 23:36       ` Junio C Hamano
2007-02-07 23:46         ` Linus Torvalds
2007-02-07 23:53           ` Jakub Narebski
2007-02-07 23:59           ` Johannes Schindelin
2007-02-08  0:05             ` Shawn O. Pearce
2007-02-08  0:26           ` Junio C Hamano
2007-02-08  0:41             ` Johannes Schindelin
2007-02-08  0:50               ` Junio C Hamano
2007-02-08  0:56                 ` Johannes Schindelin
2007-02-08 17:51                 ` Linus Torvalds
2007-02-08 18:36                   ` Johannes Schindelin
2007-02-07 22:57   ` Shawn O. Pearce
2007-02-07 23:00   ` Bill Lear
2007-02-07 23:29     ` Linus Torvalds
2007-02-07 23:31       ` Bill Lear
2007-02-07 23:02   ` Linus Torvalds
2007-02-08  8:26   ` Johannes Sixt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).