-
Notifications
You must be signed in to change notification settings - Fork 62.2k
[GitHub Desktop] Stashing changes feature #3598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
6392f57
Add images
ethanpalm ee06d28
Add new article to index
ethanpalm 39c073e
Create new article and reusables
ethanpalm 1e9bc27
Move content from "Managing branches"
ethanpalm 4f227b9
Fix liquid formatting for OS versioning
ethanpalm 6014848
Incorporate reviewer feedback
ethanpalm 98577e6
Fix broken image link
ethanpalm 617d7c6
Fix broken link
ethanpalm cf251b4
Create versioned reusables
ethanpalm 09d3585
Merge branch 'main' into desktop-stashing-changes
ethanpalm 29bb1ba
Remove white space
ethanpalm 97d6de9
Incorporate reviewer feedback
ethanpalm 47f6bdc
Fix alt text typo
ethanpalm 01117e3
Merge branch 'main' into desktop-stashing-changes
ethanpalm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+37.7 KB
assets/images/help/desktop/windows-discard-stashed-changes-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...desktop/contributing-and-collaborating-using-github-desktop/stashing-changes.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: Stashing changes | ||
intro: You can temporarily save your changes without committing them to a branch by stashing the changes. | ||
versions: | ||
free-pro-team: '*' | ||
--- | ||
|
||
### About stashed changes | ||
|
||
To apply your changes to your repository, you must save the files and then commit the changes to a branch. If you have saved changes that you are not ready to commit yet, you can stash the changes for later. When you stash changes, the changes are temporarily removed from the files and you can choose to restore or discard the changes later. You can only stash one set of changes at a time with {% data variables.product.prodname_desktop %}. If you use {% data variables.product.prodname_desktop %} to stash changes, all unsaved changes will be stashed. After you stash changes on a branch, you can safely change branches or make other changes to your current branch. | ||
|
||
If you use {% data variables.product.prodname_desktop %} to switch branches while you have saved, but not committed, changes, {% data variables.product.prodname_desktop %} will prompt you to stash the changes or bring them to the other branch. For more information, see "[Managing branches](/desktop/contributing-to-projects/managing-branches#switching-between-branches)." | ||
|
||
### Stashing changes | ||
|
||
{% data reusables.desktop.click-changed-files-header %} | ||
{% data reusables.desktop.click-stash-all-changes %} | ||
|
||
### Restoring stashed changes | ||
|
||
{% data reusables.desktop.navigate-to-stashed-changes %} | ||
{% data reusables.desktop.click-stashed-changes %} | ||
{% data reusables.desktop.click-restore %} | ||
|
||
### Discarding stashed changes | ||
|
||
{% data reusables.desktop.navigate-to-stashed-changes %} | ||
{% data reusables.desktop.click-stashed-changes %} | ||
{% data reusables.desktop.click-discard %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
1. Right click the **changed files** header. | ||
|
||
{% mac %} | ||
|
||
 | ||
|
||
{% endmac %} | ||
|
||
{% windows %} | ||
|
||
 | ||
|
||
{% endwindows %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
1. Click **Discard**. | ||
|
||
{% mac %} | ||
|
||
 | ||
|
||
{% endmac %} | ||
|
||
{% windows %} | ||
|
||
 | ||
|
||
{% endwindows %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
1. Click **Restore**. | ||
|
||
{% mac %} | ||
|
||
 | ||
|
||
{% endmac %} | ||
|
||
{% windows %} | ||
|
||
 | ||
|
||
{% endwindows %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
1. Click **Stash All Changes**. | ||
|
||
{% mac %} | ||
|
||
 | ||
|
||
{% endmac %} | ||
|
||
{% windows %} | ||
|
||
 | ||
|
||
{% endwindows %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
1. In the left sidebar, click **Stashed Changes**. | ||
 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
1. If you are not already on the branch where the changes are stashed, click {% octicon "git-branch" aria-label="The branch icon" %} **Current Branch**, then click the branch with stashed changes. | ||
 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.