ref/head
This commit is contained in:
parent
038853e4bb
commit
81cb56bd11
1 changed files with 11 additions and 0 deletions
|
@ -533,3 +533,14 @@ a__git_tag_delete() {
|
|||
--delete \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
# update head ref
|
||||
gurh() { a__git_update_ref_head "${@}"; }
|
||||
a__git_update_ref_head() {
|
||||
if [ "${2}" ]; then
|
||||
git \
|
||||
update-ref \
|
||||
"refs/heads/${1}" \
|
||||
"${2}"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue