|
Lines 486-492
All changes that you have not pushed are local and can easily be modified (git r
Link Here
|
| 486 |
|
486 |
|
| 487 |
===== Keeping local changes |
487 |
===== Keeping local changes |
| 488 |
The simplest way to keep local changes (especially trivial ones) is to use 'git stash'. |
488 |
The simplest way to keep local changes (especially trivial ones) is to use 'git stash'. |
| 489 |
In its simples form, you use 'git stash' to record the changes (which pushes them onto the stash stack). |
489 |
In its simplest form, you use 'git stash' to record the changes (which pushes them onto the stash stack). |
| 490 |
Most people use this to save changes before updating the tree as described above. |
490 |
Most people use this to save changes before updating the tree as described above. |
| 491 |
They then use 'git stash apply' to re-apply them to the tree. |
491 |
They then use 'git stash apply' to re-apply them to the tree. |
| 492 |
The stash is a stack of changes that can be examined with 'git stash list'. |
492 |
The stash is a stack of changes that can be examined with 'git stash list'. |
| 493 |
- |
|
|