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
Never leave code to be commit-ed in your machine... you may end up to learn it in the hard way, like when your disk breaks apart and you loose all your precious work.
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
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
Never leave code to be commit-ed in your machine... you may end up to learn it in the hard way, like when your disk breaks apart and you loose all your precious work.
I use ZSH shell that have pretty handy git alias:
So my workflow is:
gwip
to commit all dirty changes, including untracked files, therefore everything.git push origin feature-wip
to push my changes to a work in progress branch. This saves me in case my disk goes dead.When I am back to the project:
gunwip
to get back git to the same exact dirty stage it was before I appliedgwip
.When I am ready to perform a clean commit:
git checkout feature
to switch back to the branch from where I derivedfeature-wip
.git commit -sam 'my message'
it may needgit add .
before if untracked files exist.git push origin feature
always play safe and push your most recent commits to upstream.I hope that it helps someone :)
wow that is wonderful!
Will this work on a bash shell alias?
yes it will, just add both alias to your
~/.bashrc
or try Oh My ZSH and I bet with you that you will not come back to bash :)I can live without Oh My ZSH, but life wouldn't be the same ;)
This can be live change.
Thanks man
It was for me... Cannot live without Oh-My-ZSH ;)