Tuesday, January 5, 2010

Revert serveral git commits

A small git trick I just learned:

To undo a single bad commit "git revert" is great.
But it is tedious to do this for many.
For that the best is:
git diff HEAD {last-good-id} | git apply

Before doing this check the logs of all commits which will be undone, with:
git log {last-good-id}..

Hope this helps someone else.

24 comments:

Baptiste said...

Completely unrelated : I've seen your post on the SGUScope project, and was pondering wether you bought the Picoscope or the Velleman ? I'm running Linux and not wanting to switch back to Win when it comes to check some stuff. I have e-mailed Kari Lane to get some news,but no answer.

Roland said...

I baught the Velleman. And I'm happy. So far I haven't got any code from Karl yet, so I haven't tried it under Linux. But it works great in Vmware.

baptiste said...

Nice !
Have you tried running the Velleman software with Wine ? I've tried it in demo mode, looks like its working, but i can't tell if it will with the scope plugged.
I also found this usb scope, which is, apart from being cheap, actually sold with an open-source software that runs on Linux, believe it or not.

Roland said...

No didn't try it in Wine.
Saw that syscomp one too. Mainly took the Velleman because I couldn't find any reviews about the syscomp.

baptiste said...

Could you try and tell me, if you can ?
Thanks !

Roland said...

Sorry. Don't want to have to install it just for that.

Anonymous said...

Keep posting stuff like this i really like it

Anonymous said...

nice post. thanks.

Unknown said...

2015-7-1 xiaozhengm
pandora rings
ray ban glasses
gucci
ray bans
toms outlet
cheap ray ban sunglasses
longchamp outlet
coach factory outlet
coach outlet store online
mcm outlet
polo ralph lauren
cheap jerseys
nike blazer low
gucci outlet
michael kors outlet
chanel bags
chanel outlet
oakley store
oakley sunglasses
louis vuitton
nike tn
cheap true religion jeans
true religion sale
michael kors outlet
polo ralph lauren
jordan pas cher
coach factory outlet
replica watches cheap
michael kors handbag
michael kors outlet online

xumeiqing said...

20161107meiqing
oakley sunglasses
burberry outlet canada
tory burch outlet
true religion outlet
birkenstock sandals
adidas yeezy
louis vuitton outlet
coach factory outlet
ray ban eyeglasses
timberland boots

Unknown said...

jianbin1122
dior outlet
moncler jackets
kobe shoes
canada goose outlet
oakley sunglasses
asics
replica watches
nike free 5
cheap nike shoes sale
louis vuitton outlet

Unknown said...

jianbin1122
dior outlet
moncler jackets
kobe shoes
canada goose outlet
oakley sunglasses
asics
replica watches
nike free 5
cheap nike shoes sale
louis vuitton outlet

Unknown said...

adidas uk
adidas superstar
cheap jerseys from china
nfl jerseys
michael kors handbags
longchamp outlet
nike shoes for men
louboutin chaussures
polo ralph lauren
ray ban sunglasses
20170208caiyan

Unknown said...

20170218 leilei3915
ferragamo shoes
nike free running
coach outlet
toms shoes
michael kors handbags
michael kors uk
michael kors outlet
pandora jewelry
los angeles lakers jerseys
louis vuitton outlet

Unknown said...

coach outlet store online
fitflops
ralph?lauren?polo?shirts
tory burch outlet
nfl jersey wholesale
giuseppe zanotti shoes
cheap oakley sunglasses
gucci outlet online
Nike Free shoes
ray bans
chanyuan2017.06.15

Unknown said...

coach outlet store online
fitflops
ralph?lauren?polo?shirts
tory burch outlet
nfl jersey wholesale
giuseppe zanotti shoes
cheap oakley sunglasses
gucci outlet online
Nike Free shoes
ray bans
chanyuan2017.06.15

John said...

air max shoes
adidas
adidas outlet online
coach factory outlet online
gucci outlet online
ray ban sunglasses outlet
chi flat iron
nfl jerseys
nfl jerseys cheap
jordan shoes
20170801yuanyuan

Kay said...

That's a helpful tip.

jaqui said...

Time saving method

Unknown said...

ugg boots clearance
fitflops
nike air max
moncler
polo ralph lauren
ugg outlet
canada goose outlet
coach outlet online
ralph lauren
uggs outlet
201711.21wengdongdong

5689 said...

zzzzz2018.9.5
tory burch outlet
christian louboutin outlet
oakley sunglasses wholesale
off white outlet
nike huarache
christian louboutin sale
cheap basketball shoes
ugg boots clearance
christian louboutin shoes
hermes belts

zzyytt said...

harden shoes
lebron 16
asics shoes
yeezy boost 350 v2
yeezy boost 350 v2
nike roshe
coach outlet
moncler jackets
yeezy boost
adidas tubular

ирина каменская said...
This comment has been removed by the author.
yanmaneee said...

bape
yeezy
yeezy boost 500
offwhite
bape
nike sb
bape
kyrie 6
bape hoodie
golden goose sneakers