GIT – Rename a git branch
… its so easy for the current branch: $> git branch -m <newname> … and for any branch too: $> git branch -m <oldname> <newname>
… its so easy for the current branch: $> git branch -m <newname> … and for any branch too: $> git branch -m <oldname> <newname>
If you got the “Too many authentication failures for X” error on trying to connect to a server over ssh you can use the -o parameter to set the PubkeyAuthentication option to no. ssh -o PubkeyAuthentication=no root@host With that parameter your machine won’t try to send all your public keys any more on ssh connect. […]
As a reverse function of nl2br you can use: <?php /** * reverse function for nl2br * @param $string – string with br’s * @return string – string with \n */ function br2nl($string) { return preg_replace(‘/\<br(\s*)?\/?\>/i’, “\n”, $string); } ?>
To generate the headline styles for H1 – H6 you can use a loop: @for $i from 1 through 6 { h#{$i} { font-size: 2.5em – (0.2em * $i); } }