git stash push -p -m "my commit message"
-p
let’s you select the hunks that should be stashed; whole files can be selected as well.
You’ll be prompted with a few actions for each hunk:
y - stash this hunk n - do not stash this hunk q - quit; do not stash this hunk or any of the remaining ones a - stash this hunk and all later hunks in the file d - do not stash this hunk or any of the later hunks in the file g - select a hunk to go to / - search for a hunk matching the given regex j - leave this hunk undecided, see next undecided hunk J - leave this hunk undecided, see next hunk k - leave this hunk undecided, see previous undecided hunk K - leave this hunk undecided, see previous hunk s - split the current hunk into smaller hunks e - manually edit the current hunk ? - print help
Related Posts:
- How to Git stash pop specific stash in 1.8.3?
- git stash apply version
- How do I ignore an error on ‘git pull’ about my local changes would be overwritten by merge?
- Stash only one file out of multiple files that have changed with Git?
- How do I ignore an error on ‘git pull’ about my local changes would be overwritten by merge?
- How can I git stash a specific file?
- How can I git stash a specific file?
- How do you stash an untracked file?
- How to name and retrieve a stash by name in git?
- How do you stash an untracked file?
- How to name and retrieve a stash by name in git?
- Stash just a single file
- Stash just a single file
- How do I ignore an error on ‘git pull’ about my local changes would be overwritten by merge?
- How to delete a stash created with git stash create?
- Undo git stash pop that results in merge conflict
- Git diff against a stash
- Move existing, uncommitted work to a new branch in Git
- Git stash pop- needs merge, unable to refresh index
- How to recover stashed uncommitted changes
- Difference between git stash pop and git stash apply
- How do I delete a Git branch locally and remotely?
- How do I rename a local Git branch?
- What does cherry-picking a commit with Git mean?
- How do I undo the most recent local commits in Git?
- Undo a Git merge that hasn’t been pushed yet
- fatal: Not a git repository (or any of the parent directories): .git [duplicate]
- Git refusing to merge unrelated histories on rebase
- What is the difference between git push origin and git push origin master
- Git pushing to remote branch
- git – remote add origin vs remote set-url origin
- Git: Message ‘src refspec master does not match any’ when pushing commits in Git
- How to upgrade Git on Windows to the latest version
- How do I push a new local branch to a remote Git repository and track it too?
- git: fatal: Could not read from remote repository
- Windows git “warning: LF will be replaced by CRLF”, is that warning tail backward?
- How to change the URI (URL) for a remote Git repository?
- What would I use git-worktree for?
- How can I merge multiple commits onto another branch as a single squashed commit?
- Git error when trying to push — pre-receive hook declined
- Why does git say “Pull is not possible because you have unmerged files”?
- Pushing empty commits to remote
- How do I revert all local changes in Git managed project to previous state?
- How to revert multiple git commits?
- What is git fast-forwarding? [duplicate]
- fatal: The current branch master has no upstream branch
- How to cherry-pick multiple commits
- Reset local repository branch to be just like remote repository HEAD
- What is “origin” in Git?
- Another git process seems to be running in this repository
- How do I call git diff on the same file between 2 different local branches?
- How to git rebase a branch with the onto command?
- Remove a git commit which has not been pushed
- Can I share my private GitHub repository by link?
- How can I make Git “forget” about a file that was tracked, but is now in .gitignore?
- How to remove files from git staging area?
- How to undo git reset –soft to get my changes back?
- .gitignore and “The following untracked working tree files would be overwritten by checkout”
- How to create a .gitignore file
- How do I rename a repository on GitHub?
- git – Your branch is ahead of ‘origin/master’ by 1 commit
- git: fatal: Could not read from remote repository
- Git: How to update/checkout a single file from remote origin master?
- How to “git clone” including submodules?
- ERROR: Error cloning remote repo ‘origin’
- My new Github page isn’t showing up
- How can I remove a commit on GitHub?
- What is the difference between ‘git remote update’, ‘git fetch’ and ‘git pull’?
- GitLab remote: HTTP Basic: Access denied and fatal Authentication
- Why should I use core.autocrlf=true in Git?
- What does git push origin HEAD mean?
- Delete branches in Bitbucket
- What to gitignore from the .idea folder?git intellij-idea gitignore webstorm
- How do you clone a Git repository into a specific folder?
- Aborting commit due to empty commit message
- git checkout master error: the following untracked working tree files would be overwritten by checkout
- How to update a branch with master on GitHub
- Can I arrange repositories into folders on Github?
- How can I see the changes in a Git commit?
- Git removing upstream from local repository
- Git pull – Please move or remove them before you can merge
- Unlink of file Failed. Should I try again?
- Git Pull is Not Possible, Unmerged Files
- Resetting remote to a certain commit
- Git merge reports “Already up-to-date” though there is a difference
- git-diff to ignore ^M
- Change the location of the ~ directory in a Windows install of Git Bash
- Where is git.exe located?
- How to find which git branch I am on when my disk is mounted on other server
- Git checkout – switching back to HEAD
- How to create a new branch from a tag?
- How to modify a specified commit?
- How can I push a specific commit to a remote, and not previous commits?
- Git ignore local file changes
- Workflow for working with git and WordPress
- best practice on pushing staging development (database/uploads) to the live server
- Initial wordpress deploy via git
- How to use wordpress with Git?
- Is it possible to checkout a beta version of WordPress via github?
- how can I create a WP offline environment before releasing the websites? [closed]