File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,38 @@ git branch -d the_local_branch
57
57
git push origin --delete the_remote_branch
58
58
```
59
59
60
+ ## Removing cherry-pick commit
61
+
62
+ A cherry-pick is basically a commit, so if you want to undo it, you just undo the commit.
63
+
64
+ > when I have other local changes
65
+
66
+ Stash your current changes so you can reapply them after resetting the commit.
67
+
68
+ ```
69
+ $ git stash
70
+ $ git reset --hard HEAD^
71
+ $ git stash pop # or `git stash apply`, if you want to keep the changeset in the stash
72
+ ```
73
+
74
+ > when I have no other local changes
75
+
76
+ ```
77
+ $ git reset --hard HEAD^
78
+ ```
79
+
80
+ ----
81
+
82
+ # Setting up ssh for GIT.
83
+
84
+ https://help.github.com/en/articles/connecting-to-github-with-ssh
85
+
86
+ https://help.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key
87
+
88
+ https://help.github.com/en/articles/adding-a-new-ssh-key-to-your-github-account
89
+
90
+
91
+
60
92
61
93
62
94
You can’t perform that action at this time.
0 commit comments