Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 29e0d888ba
Fetching contributors…

Cannot retrieve contributors at this time

file 25 lines (18 sloc) 0.608 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
. .\psh_git_utils.ps1

exit_if_on_the_master_branch

$now = get-date
$new_branch_name = "$($now.year)$($now.month.tostring("00"))$($now.day.tostring("00"))$($now.hour.tostring("00"))$($now.minute.tostring("00"))$($now.second.tostring("00"))"
git add -A
git commit -m "Committing"

"Enter a meaningful branch name (leave empty if you don't need one)"
$branch_name = read-host
$branch_name = $branch_name.trim()

if ($branch_name -ne "")
{
  checkout($branch_name)
}

git checkout master

exit_if_not_on_the_master_branch

checkout($new_branch_name)
git pull jp master
echo "new branch name:$new_branch_name"
Something went wrong with that request. Please try again.