Explore >> Select a destination


You are here

www.markusdosch.com
| | blog.codeminer42.com
3.9 parsecs away

Travel
| | Are you new on git? And you know these commands: git add , git commit , git pull , git push , git status. But are you starting to feel limited with those commands? This post is for you! After reading it you will have learned the command: git commit --amend , or at least
| | initialcommit.com
5.0 parsecs away

Travel
| | Git Guides & Git Tutorials
| | vlad.website
3.6 parsecs away

Travel
| | Sometimes, you want to add some code to test something out, but you definitely want to make sure you don't git commit it. Of course, you should always check the output of git diff before you make a commit (you do, right?), but if you have a lot of changes things can slip through the cracks. A solution is to write a comment containing a string such as "nocheckin": function do_stuff() { printf("hello!!! testing!!!\n"); // nocheckin call_important_thing(); call_other_thing(); } Then, you need to set git up such that it refuses to make a commit if it detects the "nocheckin" string anywhere in your changed files. Here's how to do it.
| | haacked.com
19.4 parsecs away

Travel
| A git alias to clean up gone branches. Even ones that have been squashed and merged.