Another quicker way is:
git stash save --keep-index --include-untracked
You don’t need to include --include-untracked
if you don’t want to be thorough about it.
After that, you can drop that stash with a git stash drop
command if you like.
Related Posts:
- Git: How do I force “git pull” to overwrite local files?
- Differences between git pull origin master & git pull origin/master
- How do I rename a local Git branch?
- Git: How to squash all commits on branch
- Undo git pull, how to bring repos to old state
- Undo git pull, how to bring repos to old state
- Is it better to create a Git repository at the root level or in the WordPress theme directory?
- WordPress and Git: How does Git interact with your IDE? [closed]
- How do I delete a Git branch locally and remotely?
- How do I delete a Git branch locally and remotely?
- How do I rename a local Git branch?
- How do I undo the most recent local commits in Git?
- How can I switch to another branch in git?
- How do I discard unstaged changes in Git?
- Git: How do I force “git pull” to overwrite local files?
- Download single files from GitHub
- How can I make git accept a self signed certificate?
- How can I revert multiple Git commits (already pushed) to a published repository?
- What does “Git push non-fast-forward updates were rejected” mean?
- What is the difference between ‘git pull’ and ‘git fetch’?
- Git: cannot do a partial commit during a merge (SourceTree)
- Git: How do I force “git pull” to overwrite local files?
- What is the meaning of git reset –hard origin/master?
- How can I reset or revert a file to a specific revision?
- Else clause on Python while statement
- Delete all local git branches
- Why does ‘git commit’ not save my changes?
- How can I undo git reset –hard HEAD~1?
- Set up git to pull and push all branches
- git push to specific branch
- Get changes from master into branch in Git
- Invalid VCS root mapping – 3 errors on my project
- Updates were rejected because the remote contains work that you do not have locally
- how to reset develop branch to master
- Do I commit the package-lock.json file created by npm 5?
- Rebasing remote branches in Git
- How can I see the changes in a Git commit?
- What is the Git equivalent for revision number?
- How can I delete all Git branches which have been merged?
- difference between git merge origin/master and git pull
- What’s a good (free) visual merge tool for Git? (on windows)
- Getting Started with Subversion, Git, or similar Version Control System to keep a History of my Files? [closed]
- Best way to version control WordPress template files?
- Should I use SVN or Git?
- WordPress Health Tool reporting version control as a critical issue
- storing database in version control
- Versioning and your WordPress site?
- Pull latest stable release via git [closed]
- How to make changes on WordPress site locally on live site?
- How should I be handling my theme version numbering?
- Version control with a team of non-developers
- Painless way to track remote Git repo for WordPress updates
- Questions about Git and WordPress [duplicate]
- How to change version numbers in themes from Official repository?
- Checking for a new version from WP Repos
- How to rename the wp-config.php file once under version control?
- When developing entire sites for clients, is it viable to version control the entire site? [duplicate]
- WordPress project under Mercurial, what’s an appropriate .hgignore file?
- How to use one git (github) repository for version control for multiple themes
- version control for wordpress? (wordpress folder and database at same time)
- Revision History for Entire WordPress Site
- If you already have a copy of the code, is there any reason to create a feature branch?
- What is git tag, How to create tags & How to checkout git remote tag(s)
- What is the best (and safest) way to merge a Git branch into master?
- Squash my last X commits together using Git
- How to apply a patch generated with git format-patch?
- Abort a Git Merge
- How to delete a remote tag?
- Updates were rejected because the tip of your current branch is behind its remote counterpart
- How can I merge multiple commits onto another branch as a single squashed commit?
- How to find my GitHub username so that I can be found via the URL?
- Create Git branch with current changes
- github website publish cannot publish unborn HEAD
- git – pulling from specific branch
- GitHub: invalid username or password
- Why do I have to “git push –set-upstream origin
“? - Stash just a single file
- Trying to git pull with error: cannot open .git/FETCH_HEAD: Permission denied
- git pull from master into the development branch
- Clone A Private Repository (Github)
- Connecting to Git team provider failed
- Heroku: How to change a Git remote on Heroku
- Undoing a ‘git push’
- How do I set up Eclipse/EGit with GitHub?
- Repository size limits for GitHub.com
- git push origin master does not work
- git push –force-with-lease vs. –force
- How to answer the git prompt in npm init for a local repo
- How to configure git bash command line completion?
- How to stop tracking and ignore changes to a file in Git?
- Why do the Roots theme CSS files not load (404)?
- Manage base theme with version control?
- Is there any good way to use SVN for uploads directory?
- WordPress multisite – What’s the ideal setup for development/staging/production environments?
- WordPress on git – need help with configuration
- Updating a WP Plugin SVN not showing on WordPress Website or Zip
- Can anyone see a syntax error in this? [closed]
- GIT as a backup tool
- What solutions exist to allow the use of revision control for server configuration files? [closed]
- How to remove pop up on website (css changes not visible)?