Skip to content

Commit bc83337

Browse files
author
Rai, Ankit(ankirai)
committed
Git version control ssh add key
1 parent 4f1be56 commit bc83337

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

general/git-version-control.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,38 @@ git branch -d the_local_branch
5757
git push origin --delete the_remote_branch
5858
```
5959

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+
6092

6193

6294

0 commit comments

Comments
 (0)