TIL - Git edition
Table of Contents
Creating a tag
$ git tag <tag_name>
$ git push origin tag <tag_name>
Stash changes for specific files or directories
You can use the git stash command with a specific path to stash changes for only certain files or directories.
For example:
$ git stash push path/to/file
This stashes changes for just path/to/file
, leaving other modifications intact. It’s a handy way to organize your work if you’re dealing with unrelated changes in your repo but don’t want to stash everything. You can later apply this stash like any other with git stash apply.