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.

32 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

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 kanpur
Packers and movers lucknow
Packers and movers cochin
Packers and movers agra
Packers and movers varanasi
Packers and movers indore

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

khairy said...

شركة الفا لنقل العفش
شركة نقل عفش بجدة
شركة نقل عفش بالمدينة المنورة
شركة نقل اثاث بالرياض
شركة نقل عفش بالدمام
شركة نقل عفش بالطائف
شركة نقل عفش بمكة
شركة نقل عفش بينبع

Pengobatan Penyakit Insomnia said...

Very Nice Blog Updation Keep Updating !!

Cara Mengobati Penyakit Gagal Ginjal

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.
ирина каменская said...

I can tell you how I spend my free time come here plummy online casino slot games I am here and have fun and take out the money and you are also lucky

samaher said...


https://khalejmovers.com/نقل-اثاث-الرياض-الامارات/
ارخص شركة نقل عفش





yanmaneee said...

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