
What Branch am I on Anyway?
Often during web development the code is switching between different branches and it can be difficult to let everyone on a small team know which branch is in use.
Adding this line to a PHP script and using CSS to make it easy to see can save time.
<div class="git-branch">'.`git name-rev --name-only HEAD`.'</div>
Be sure to wrap it in some code to prevent display on the production site.
Print article | This entry was posted by elvis on 04/06/16 at 06:59:00 pm . Follow any responses to this post through RSS 2.0. |