Quick Terminal Command to Make a WIP Commit

Meng Taing
2 min readNov 25, 2019

--

Photo by NeONBRAND on Unsplash

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 change wip 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:

WIP commit alias

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 💨!

--

--

Meng Taing
Meng Taing

Written by Meng Taing

Fullstack developer. When life gives you a lemon, write a script to turn it into lemonade so that you don’t have to deal with it again.

No responses yet