1
mirror of https://github.com/jakejarvis/dotfiles.git synced 2025-09-15 23:15:30 -04:00

git 2.28 default branch name

This commit is contained in:
2020-07-31 21:50:27 -04:00
parent 32a95ccc7d
commit d71625e3f0
3 changed files with 14 additions and 1 deletions

View File

@@ -135,6 +135,13 @@ alias gist="hub gist create --open"
alias ghnew="gh repo create"
alias ghfork="gh repo fork"
alias ghci="hub ci-status --verbose"
glall() {
# pull all remote branches
# https://stackoverflow.com/a/10312587
for remote in `git branch -r`; do git branch --track ${remote#origin/} $remote; done
git fetch --all
git pull --all
}
#
# Docker
@@ -172,9 +179,10 @@ make_hugo() {
# parentheses lets us cd to Hugo path without changing our current location
(
cd "$GOPATH/src/github.com/gohugoio/hugo" \
&& git checkout master \
&& mage uninstall \
&& git pull origin master \
&& git reset --hard HEAD \
&& git checkout master \
&& mage -v hugo \
&& HUGO_BUILD_TAGS=extended mage -v install
)