If you have been using Git long enough, you have probably heard about git add -p/--patch
, which allows you to selectively stage parts of files. However, did you know that many other Git commands support this argument as well? Among them are commit
, reset
, checkout
, stash
, and log
, and they represent the main topic of the present post.
Read More
Tag Archives: Git
My Git Configuration
I have been using Git extensively since 2011. Over the years, I have configured it to make myself more productive. In this post, I would like to share and explain my Git configuration with you. Hopefully, you will find some nice tweaks in there that will help you to speed up your workflow.
Read More
Using an Editor To Stage Files In Git
This post describes script git-edit-index that allows you to open an editor to stage or unstage files in Git, just like when you perform an interactive rebase. It thus represents a faster alternative to git add -i
or git gui
.
Read More