If you have a low # of commits and you don't care if these are combined into one mega-commit, this works well:
unstage the files (replace 1 with # of commits)
git reset --soft HEAD~1
create a new branch
git checkout -b NewBranchName
// | |
//"Часы с кукушкой" на GenTee (http://www.gentee.ru) | |
//Идея с http://bash.org.ru | |
//Made by nibb13 (nibble@list.ru) | |
//Распространяются по GNU GPL =) | |
// | |
//!!!Работает скрыто, закрывается ручным убийством процесса!!! | |
// | |
import "kernel32.dll"{ |
If you have a low # of commits and you don't care if these are combined into one mega-commit, this works well:
unstage the files (replace 1 with # of commits)
git reset --soft HEAD~1
create a new branch
git checkout -b NewBranchName
#!/bin/sh | |
#ref: http://stackoverflow.com/a/25243837 | |
SCRIPTNAME=$(basename $0) | |
LOCKDIR="/var/lock/${SCRIPTNAME}" | |
PIDFILE="${LOCKDIR}/pid" | |
if ! mkdir $LOCKDIR 2>/dev/null | |
then |
echo T=$((`wl -i eth1 phy_tempsense|awk {' print $1 '}`/2+20)) |
# Получение параметра lang из GET query string: | |
LANG=$(echo "$QUERY_STRING" | sed -n 's/^.*lang=\([^&]*\).*$/\1/p' | sed "s/%20/ /g") | |
# Установка cookie (Внимание! Опции -en могут отсутствовать в вашем echo): | |
COOKIE="Set-cookie: lang=$LANG; expires=Thursday, 01-Jan-9999 12:00:00 GMT\n" | |
echo -en "Content-Type: text/html; charset=UTF-8\r\n" | |
echo -en "$COOKIE\r\n" | |
echo -en "\r\n" | |
# Установка cookie (printf-версия, portable): |