GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GIT-UNDO (1)

NAME

git-undo - Remove latest commits

CONTENTS

SYNOPSIS

git-undo [<commitcount>] [-s, --soft, -h, --hard]

DESCRIPTION

Removes the latest commits.

OPTIONS

--soft or -s

This is the default, only rolls back the commit but changes remain un-staged.

--hard or -h

This option wipes your commit(s), so that your changes cannot be recovered. Use with care.

<commitcount>

Number of commits to remove. Defaults to 1, thus remove the latest commit.

EXAMPLES

Removes the latest commit.

$ git undo

Remove the latest 3 commits:

$ git undo 3

AUTHOR

Written by Kenneth Reitz <me@kennethreitz.com> and Nick Lombard <github@jigsoft.co.za>

REPORTING BUGS

<https://github.com/tj/git-extras/issues>

SEE ALSO

<https://github.com/tj/git-extras>
Search for    or go to Top of page |  Section 1 |  Main Index


GIT-UNDO (1) December 2015

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.