T o n g | 19 Oct 16:45
Favicon

OT, misc git questions

Hi,

Just abusing our people's talent a bit here, :-). 

Quick questions on the git:

- is it possible to amend a committed & pushed comment?
- how to revoke a specific file to remote master?

thanks

--

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/

Richard Hartmann | 19 Oct 21:32

Re: OT, misc git questions

On Sun, Oct 19, 2008 at 16:45, T o n g <mlist4suntong <at> yahoo.com> wrote:

> - is it possible to amend a committed & pushed comment?

Yes, you can. It's possible to prune a git repo by basically replaying
the other commit, thus creating a new repo. You might run into
trouble as your repo will have a different commit ID somewhere
in the middle.

> - how to revoke a specific file to remote master?

No. Remote master can rebuild the repo, omitting the offending
commit, though.

As to _how_ to do this, ask git <at> vger.kernel.org (iirc).

Richard
T o n g | 20 Oct 22:16
Favicon

Re: OT, misc git questions

Thanks Richard, 

On Sun, 19 Oct 2008 21:32:37 +0200, Richard Hartmann wrote:

>> - how to revoke a specific file to remote master?
> 
> No. Remote master can rebuild the repo, omitting the offending commit,
> though.

sorry that I didn't make it clear. I meant, having realized that a change 
I shouldn't have made, how to revoke the file to the original stage, to 
the same version as the remote master version, but just this specific 
file? 

thanks

--

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/

Richard Hartmann | 20 Oct 22:29

Re: OT, misc git questions

On Mon, Oct 20, 2008 at 22:16, T o n g <mlist4suntong <at> yahoo.com> wrote:

> sorry that I didn't make it clear. I meant, having realized that a change
> I shouldn't have made, how to revoke the file to the original stage, to
> the same version as the remote master version, but just this specific
> file?

Unless a commit was for one file only, there is no trivial way to do so.
Create a branch, revert to the state you want, copy the file to somewhere,
go back to the other branch, copy back the file, commit and prune the
other branch...

Richard

Gmane