Lệnh Git stash

Stashing your work
The git stash command takes your uncommitted changes (both staged and unstaged), saves them away for later use, and then reverts them from your working copy. For example:
At this point you're free to make changes, create new commits, switch branches, and perform any other Git operations; then come back and re-apply your stash when you're ready.
Note that the stash is local to your Git repository; stashes are not transferred to the server when you push.

Re-applying your stashed changes

You can reapply previously stashed changes with git stash pop:
Popping your stash removes the changes from your stash and reapplies them to your working copy.

Tham khảo:

Comments

Popular posts from this blog

Sử dụng Redshift để chỉnh màu laptop