(TIL) Git: Grab A Single File From A Stash
In git, you can reference a commit SHA or branch to checkout differing versions of files.
In git, you can reference a commit SHA or branch to checkout differing versions of files.
Sometimes you just need one file from another branch. Sure you could git cherry-pick but then you’re dealing with commits. That sort of thing gets sticky fas...
Sometimes a project can get to a point where there are so many local branches that deleting them one by one is too tedious. This one-liner can help:
Git commands like git diff and git add --patch are awesome, but their little caveat is that they only work on files that are currently tracked in the reposit...
It’s very straightforward to save a matplotlib figure to disk: