Use ‘-n’ flag with the cherry-picking which is “no commit”
See here: http://git-scm.com/docs/git-cherry-pick
git cherry-pick -n <HASH>
To then unstage the staged changes
git reset
More Related Contents:
- How to modify existing, unpushed commit messages?
- How to replace master branch in Git, entirely, from another branch? [duplicate]
- How do you fix a bad merge, and replay your good commits onto a fixed merge?
- Git commands that could break/rewrite the history
- Jenkins: what is the correct format for private key in Credentials
- How to reset all files from working directory but not from staging area?
- Putting Git hooks into a repository
- Apply gradle file from different repository
- How can I view an old version of a file with Git?
- How do you roll back (reset) a Git repository to a particular commit? [duplicate]
- How to squash my last x commits together?
- What’s the proper way to “go get” a private repository?
- What is the Git equivalent for revision number?
- How to rebase local branch onto remote master
- Github: error cloning my private repository
- How can I create a Git repository with the default branch name other than “master”?
- git commit get fatal error “fatal: CRLF would be replaced by LF in”
- Git push hangs when pushing to Github?
- Invalid SSL certificate when pushing to Git server
- How to color the Git console?
- Delete local Git branches after deleting them on the remote repo
- What would I use git-worktree for?
- DAG vs. tree using Git?
- How do I git rebase the first commit?
- What are these ^M’s that keep showing up in my files in emacs?
- Permission denied error on Github Push
- Undo git filter-branch
- git export from github remote repository
- How to synchronize two git repositories
- What is git doing when it says it is “resolving deltas”?