LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-11-2009, 03:49 AM   #1
phyyu
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Rep: Reputation: 0
Smile How to delete a commit from git tree


The git tree is A-B-HEAD, I want to delet commit "B", how can I do that ?
Which git command should I use ?
Thank you.
 
Old 11-11-2009, 06:48 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
I think "git revert" is what you are looking for.

Code:
man git-revert
Evo2.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source centguy Linux - Desktop 2 10-08-2008 10:36 PM
Samba: protect write-enabled directory-tree for move or delete alexandrusa Linux - Software 3 03-05-2008 09:44 AM
LXer: Linux: Historical Kernel Tree With Git LXer Syndicated Linux News 0 07-26-2007 02:31 AM
How-to: WINE from git tree for Fedora Core 6 running on AMD64 (for HL2) Jamo Linux - Games 0 02-02-2007 04:00 PM
Help! How do you delete a directory tree? johnmcollier Linux - Security 0 10-24-2003 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration