summaryrefslogtreecommitdiffhomepage
path: root/blog/entry/revertisinversecp.mdwn
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2015-11-18 10:09:12 -0700
committerSean Whitton <spwhitton@spwhitton.name>2015-11-18 10:09:12 -0700
commitdeb4807989d127e40e44c1192477c40e30f88180 (patch)
tree41e557cc82e01b0e76de8d4f548105023af8dfee /blog/entry/revertisinversecp.mdwn
parent675d02fc2c3d2bfb53a81db6d2c55f0dfbbd79ed (diff)
downloadwiki-deb4807989d127e40e44c1192477c40e30f88180.tar.gz
imported PyBlosxom entries and comments
Diffstat (limited to 'blog/entry/revertisinversecp.mdwn')
-rw-r--r--blog/entry/revertisinversecp.mdwn13
1 files changed, 13 insertions, 0 deletions
diff --git a/blog/entry/revertisinversecp.mdwn b/blog/entry/revertisinversecp.mdwn
new file mode 100644
index 0000000..01a45cb
--- /dev/null
+++ b/blog/entry/revertisinversecp.mdwn
@@ -0,0 +1,13 @@
+[[!meta date="2012-08-27 16:15:00"]]
+[[!meta title="git revert is an inverse of cherry-pick"]]
+[[!tag imported_PyBlosxom tech git]]
+
+`git revert` is an inverse of `git cherry-pick`. I had a branch `raven`
+earlier and I wanted some changes from it to be standard in master with
+a replacement branch with the converse of those changes. So
+
+ $ git checkout master
+ $ git merge raven
+ $ git checkout -b newbranch
+ $ git revert -n [sha of the changes] <-- THIS is literally:
+ invert the commit and cherry-pick it