You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-15
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,8 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
77
77
*[Rebases 'feature' to 'master' and merges it in to master ](#rebases-feature-to-master-and-merges-it-in-to-master)
78
78
*[Archive the `master` branch](#archive-the-master-branch)
79
79
*[Modify previous commit without modifying the commit message](#modify-previous-commit-without-modifying-the-commit-message)
80
-
*[Prunes references to remote branches that have been deleted in the remote.](#prunes-references-to-remote-branches-that-have-been-deleted-in-the-remote)
80
+
*[Prunes references to remove branches that have been deleted in the remote.](#prunes-references-to-remove-branches-that-have-been-deleted-in-the-remote)
81
+
*[Delete local branches that has been squash and merged in the remote.](#delete-local-branches-that-has-been-squash-and-merged-in-the-remote)
81
82
*[Retrieve the commit hash of the initial revision.](#retrieve-the-commit-hash-of-the-initial-revision)
82
83
*[Visualize the version tree.](#visualize-the-version-tree)
83
84
*[Visualize the tree including commits that are only referenced from reflogs](#visualize-the-tree-including-commits-that-are-only-referenced-from-reflogs)
@@ -442,7 +443,7 @@ git stash
442
443
443
444
__Alternatives:__
444
445
```sh
445
-
git stash save
446
+
git stash push
446
447
```
447
448
448
449
## Saving current state of unstaged changes to tracked files
@@ -458,7 +459,7 @@ git stash --keep-index
458
459
459
460
460
461
```sh
461
-
git stash save --keep-index
462
+
git stash push --keep-index
462
463
```
463
464
464
465
## Saving current state including untracked files
@@ -469,17 +470,23 @@ git stash -u
469
470
470
471
__Alternatives:__
471
472
```sh
472
-
git stash save -u
473
+
git stash push -u
473
474
```
474
475
475
476
476
477
```sh
477
-
git stash save --include-untracked
478
+
git stash push --include-untracked
478
479
```
479
480
480
481
## Saving current state with message
481
482
```sh
482
-
git stash save <message>
483
+
git stash push -m <message>
484
+
```
485
+
486
+
487
+
__Alternatives:__
488
+
```sh
489
+
git stash push --message <message>
483
490
```
484
491
485
492
## Saving current state of all files (ignored, untracked, and tracked)
0 commit comments