I am a Developer Advocate for Security in Mobile Apps and APIs at approov.io.
Another passion is the Elixir programming language that was designed to be concurrent, distributed and fault tolerant.
Location
Scotland
Education
Self teached Developer
Work
Developer Advocate for Mobile and API Security at approov.io
This alias allows me to quickly commit everything, tracked and not tracked changes.
How to use
The current state of my branch is:
$ git status
On branch shipfast-on-docker_approov2-kotlin-wip
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: README.md
Untracked files:
(use "git add <file>..." to include in what will be committed)
test.dev.to
no changes added to commit (use "git add" and/or "git commit -a")
So the message --wip-- [skip ci] tells to the CI pipeline to not run for this commit, and at same time the --wip-- part will be used by the alias gunwip to undo what we have done with the gwip.
The gunwip alias will undo any commit where the message contains --wip--, thus will undo what we have done with gwip.
$ gunwip
Unstaged changes after reset:
M README.md
Leaving us with:
$ git status
On branch shipfast-on-docker_approov2-kotlin-wip
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: README.md
Untracked files:
(use "git add <file>..." to include in what will be committed)
test.dev.to
no changes added to commit (use "git add" and/or "git commit -a")
Summary
During my day I use a lot this 2 commands in order to keep progressing in the code until I am finished with what I am doing, thus be able to proper commit the code.
I also push this wip commits upstream to be protected of an hard disk failure. I do this several times a day, and in the end of the day.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Not really a git command per se, but once I use the OhMyZSH shell, that have lots of useful alias to git commands, I love the alias
gwip
andgunwip
.GWIP
This alias allows me to quickly commit everything, tracked and not tracked changes.
How to use
The current state of my branch is:
Using
gwip
:That results in this git log:
So the message
--wip-- [skip ci]
tells to the CI pipeline to not run for this commit, and at same time the--wip--
part will be used by the aliasgunwip
to undo what we have done with thegwip
.GUNWIP
The
gunwip
alias will undo any commit where the message contains--wip--
, thus will undo what we have done withgwip
.Leaving us with:
Summary
During my day I use a lot this 2 commands in order to keep progressing in the code until I am finished with what I am doing, thus be able to proper commit the code.
I also push this
wip
commits upstream to be protected of an hard disk failure. I do this several times a day, and in the end of the day.