Quick Terminal Command to Make a WIP Commit
WIP — work in progress — is a typical commit message you would use to commit unfinished work when it’s end of the day or when you need to switch branch.
TL;DR
git add . && git commit --no-verify -m "wip"
git add .
: stage all files.git commit
: make a commit.--no-verify
: ignore git hooks. This is to prevent linter from running.-m "wip"
: commit with message. You can changewip
to whatever temporary message you want.
Make an Alias
You can create an alias to make a WIP commit with the commands above. Open your ~/.bash_profile
, ~/.bashrc
or ~/.zshrc
to create the following alias:
alias wip='git add . && git commit --no-verify -m "wip"'
Remember save and source your ~/.bash_profile
, ~/.bashrc
or ~/.zshrc
.
source ~/.bash_profile
source ~/.bashrc
source ~/.zshrc
If you are not familiar with bash_profile
, bashrc
or zshrc
, Google it a bit.
Now you can quickly make a WIP commit like this:
Last Words
When you find yourself doing the same things every day, think about making it an alias, and write a Medium story to share it. Peace out 💨!