Git - Stash Saves Time 💎
The command git stash , picks All the changes in staging and save it in a separate place. Thus, this useful and aptly named command clears your staging area. 🔥
That way you can save a set of changes you have made but do not yet want to commit. 💥
Or, if you would need to stash untracked changes as well, use -u argument: 💡
In particular, I use more stash when I need to git pull and want to avoid conflicts between local changes and changes upstream.
¯\_(ツ)_/¯
To restore your local changes back to staging, you need to apply your stash. The following command recreates the latest changes that were stashed away: ✔️
You can have more than one stash. By default, your stashes will be applied in FILO (First-in, last-out) order.
#git #vcs #stash
@ProgrammingTip
The command git stash , picks All the changes in staging and save it in a separate place. Thus, this useful and aptly named command clears your staging area. 🔥
That way you can save a set of changes you have made but do not yet want to commit. 💥
$ git stash
Or, if you would need to stash untracked changes as well, use -u argument: 💡
$ git stash -u
In particular, I use more stash when I need to git pull and want to avoid conflicts between local changes and changes upstream.
¯\_(ツ)_/¯
To restore your local changes back to staging, you need to apply your stash. The following command recreates the latest changes that were stashed away: ✔️
$ git stash apply
You can have more than one stash. By default, your stashes will be applied in FILO (First-in, last-out) order.
#git #vcs #stash
@ProgrammingTip
Axosoft GitKraken: Unleash Your Repo! 🐙
The legendary Git GUI client for Windows, Mac and Linux. 🐧
Axosoft GitKraken is a Git client with efficiency, elegance and reliability at the core. It was made for devs by devs. 🤘
Features
You can do all the standard things you should be able to do with a git client; branching, merging, pulling, pushing, reverting, etc. ✨
The range of options you have for each commit 🔥
🔹 Set Upsteam
🔸 Branch from a historic commit
🔹 Cherrypick from commit
🔸 Revert the commit
🔹 Edit the commit message
🔸 Deleting the commit (and remote versions of it)
🔹 Creating a tag from a commit
https://t.me/pgimg/66
[Website] : https://gitkraken.com
〰〰〰〰〰〰
#Git #VCS
@ProgrammingTip
The legendary Git GUI client for Windows, Mac and Linux. 🐧
Axosoft GitKraken is a Git client with efficiency, elegance and reliability at the core. It was made for devs by devs. 🤘
Features
You can do all the standard things you should be able to do with a git client; branching, merging, pulling, pushing, reverting, etc. ✨
The range of options you have for each commit 🔥
🔹 Set Upsteam
🔸 Branch from a historic commit
🔹 Cherrypick from commit
🔸 Revert the commit
🔹 Edit the commit message
🔸 Deleting the commit (and remote versions of it)
🔹 Creating a tag from a commit
https://t.me/pgimg/66
[Website] : https://gitkraken.com
〰〰〰〰〰〰
#Git #VCS
@ProgrammingTip
Telegram
Programming Tips Resources