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.

30 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.

Xiaozhengmm 123 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

Xiaozhengmm 123 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

Qing Cai said...

chicago bears jerseys, http://www.chicagobearsjerseys.us/
asics,asics israel,asics shoes,asics running shoes,asics israel,asics gel,asics running,asics gel nimbus,asics gel kayano
giuseppe zanotti, http://www.giuseppe-zanotti-outlet.org/
louis vuitton outlet, http://www.louisvuittonoutletstore.name/
lacoste shirts, http://www.polo-lacoste-shirts.fr/
hermes outlet, http://www.hermesoutletstore.us.com/
oakland raiders jerseys, http://www.oaklandraidersjerseys.us/
ray-ban sunglasses, http://www.ray-bansunglassess.in.net/
gucci,borse gucci,gucci sito ufficiale,gucci outlet
michael kors factory online, http://www.michaelkorsfactoryoutletonline.com/
miami heat, http://www.miamiheatjerseys.net/
nike air max 2015, http://www.airmax2015.com/
the north face outlet, http://www.northface-outlet.cc/
steelers jerseys, http://www.pittsburghsteelersjersey.com/
hermes outlet store, http://www.hermesoutletstore.us.com/
swarovski uk, http://www.swarovskioutlet.org.uk/
adidas outlet store, http://www.adidasoutletstore.us.com/
air max 2014, http://www.airmax2014.net/
chanel outlet, http://www.chaneloutletstore.us.com/
louis vuitton outlet store, http://www.louisvuittonoutletstore.name/
michael kors handbags, http://www.michaelkorshandbags.in.net/
beats by dr dre, http://www.beatsbydrdre-headphones.us.com/
lululemon pants, http://www.lululemonoutletstore.in.net/
celine outlet, http://www.celineoutletus.com/
abercrombie fitch, http://www.abercrombie-fitch.us.com/
cai2015915

Minko Chen said...

roshe run men
ralph lauren outlet
coach outlet store
coach outlet store
wellensteyn outlet
los angeles clippers
hollister canada
michael kors handbags
christian louboutin shoes
san antonio spurs
celine outlet
uggs outlet
oklahoma city thunder
cheap ray ban sunglasses
nike trainers
new york giants
mulberry uk
links of london jewellery
black friday 2015

Zhenhong Bao said...

nike air max 90
michael kors outlet store
mulberry handbags
police sunglasses
soccer jerseys wholesale
fitflops outlet sale
louis vuitton outlet online
michael kors handbags
michael kors online outlet
oakley sunglasses
phone cases
nfl jerseys
michael kors handbags
michael kors handbags
true religion jeans
longchamp outlet
christian louboutin shoes
tory burch outlet
calvin klein outlet
hollister clothing
oakley sunglasses
ferragamo outlet
ray ban sunglasses
prada handbags
tiffany and co
michael kors outlet online
lululemon outlet online
swarovski outlet
fitflops clearance
replica watches
swarovski crystal
ralph lauren outlet
fitflops sale clearance
swarovski crystal
20160426zhenhong

Zhenhong Bao said...

nike air max 90
michael kors outlet store
mulberry handbags
police sunglasses
soccer jerseys wholesale
fitflops outlet sale
louis vuitton outlet online
michael kors handbags
michael kors online outlet
oakley sunglasses
phone cases
nfl jerseys
michael kors handbags
michael kors handbags
true religion jeans
longchamp outlet
christian louboutin shoes
tory burch outlet
calvin klein outlet
hollister clothing
oakley sunglasses
ferragamo outlet
ray ban sunglasses
prada handbags
tiffany and co
michael kors outlet online
lululemon outlet online
swarovski outlet
fitflops clearance
replica watches
swarovski crystal
ralph lauren outlet
fitflops sale clearance
swarovski crystal
20160426zhenhong

chenlina said...

chenlina20160520
louis vuitton handbags
michael kors outlet
coach outlet
nike air force 1
jordan retro 11
michael kors uk
ray ban sunglasses
air jordans
michael kors outlet clearance
air max 90
marc jacobs handbags
ray ban sunglasses
hollister clothing
supra shoes
true religion jeans
tory burch handbags
coach outlet
ray ban outlet
coach factory outlet
louis vuitton handbags
louis vuitton outlet stores
toms shoes
coach factory outlet
celine outlet
oakley sunglasses
jeremy scott shoes
jordan retro
nike store
mont blanc pens
vans shoes sale
toms shoes
jordan 3 white cenment
insanity workout
jordan concords
polo ralph lauren
true religion outlet
cheap oakley sunglasses
cheap nfl jerseys
air jordan pas cher
polo ralph lauren outlet
as

xumeiqing said...

20160715meiqing
louis vuitton borse
ray bans
cheap mlb jerseys
pandora charms
polo ralph lauren
coach outlet store online
michael kors purses
designer handbags
cartier love bracelet
valentino shoes
michael kors handbags
coach outlet
oakley sunglasses
nike cortez
louis vuitton bags
birkenstock
air max 90
ugg boots
polo ralph lauren
ralph lauren outlet
michael kors outlet
louis vuitton factory outlet
armani watches
vans shoes
ghd flat iron
north face jackets
nike huarache trainers
coach outlet
michael kors outlet
canada goose parka
louis vuitton outlet
cheap nhl jerseys
mizuno running shoes
coach outlet online
longchamp outlet
michael kors outlet online

xjd7410@gmail.com said...

mont blanc pens cheap
toms shoes
michael kors outlet
kevin durant 8 shoes
toms shoes outlet
ray ban sunglasses
timberland outlet
adidas shoes
michael kors outlet
louis vuitton handbags
oakley canada
instyler max
air jordan 13
ray ban sunglasses
ray ban sunglasses
michael kors outlet online
ray ban sunglasses outlet
oakley vault
mont blanc
ralph lauren polo shirts
michael kors outlet
oakley sunglasses
coach factory outlet online
adidas ultra boost
cheap jordan shoes
gucci outlet
nike roshe run
coach factory outlet
giuseppe zanotti sneakers
chneyingying2016808

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

Narender Godara said...

Packers and movers jalandhar
Packers and movers varanasi
Packers and movers agra
Packers and movers kanpur
Packers and movers allahabad
Packers and movers lucknow

Narender Godara said...

Packers and movers chennai
Packers and movers coimbatore
Packers and movers dehradun
Packers and movers ahmedabad
Packers and movers chandigarh
Packers and movers allahabad

Narender Godara said...

Packers and movers ludhiana
Packers and movers mohali
Packers and movers shimla
Packers and movers jammu
Packers and movers amritsar
Packers and movers chandigarh

Narender Godara said...

Packers and movers kanpur
Packers and movers lucknow
Packers and movers cochin
Packers and movers agra
Packers and movers varanasi
Packers and movers indore

Unknown said...

dolce and gabbana outlet
fitflops sale clearance
nike blazer low
moncler jackets
tiffany and co
polo ralph lauren
christian louboutin outlet
ugg boots
ugg outlet uk
ecco shoes

Meiqing Xu 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

林磊 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

dong dong23 said...

michael kors handbags outlet
cheap jordans
ray ban sunglasses
nike trainers uk
louis vuitton outlet online
oakley sunglasses discount
nike free run
pandora outlet store
louboutin pas cher
vans store
2017.5.22chenlixiang

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