1
mirror of https://github.com/jakejarvis/dotfiles.git synced 2025-04-25 15:35:21 -04:00

git 2.28 default branch name

This commit is contained in:
Jake Jarvis 2020-07-31 21:50:27 -04:00
parent 32a95ccc7d
commit d71625e3f0
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
3 changed files with 14 additions and 1 deletions

View File

@ -43,3 +43,5 @@
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[init]
defaultBranch = main

View File

@ -28,3 +28,6 @@ Thumbs.db
Network Trash Folder
Temporary Items
.apdisk
# Misc
.wakatime-project

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
)