mirror of
https://github.com/jakejarvis/dotfiles.git
synced 2026-01-12 16:32:54 -05:00
git 2.28 default branch name
This commit is contained in:
@@ -43,3 +43,5 @@
|
|||||||
smudge = git-lfs smudge -- %f
|
smudge = git-lfs smudge -- %f
|
||||||
process = git-lfs filter-process
|
process = git-lfs filter-process
|
||||||
required = true
|
required = true
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
||||||
|
|||||||
@@ -28,3 +28,6 @@ Thumbs.db
|
|||||||
Network Trash Folder
|
Network Trash Folder
|
||||||
Temporary Items
|
Temporary Items
|
||||||
.apdisk
|
.apdisk
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
.wakatime-project
|
||||||
|
|||||||
@@ -135,6 +135,13 @@ alias gist="hub gist create --open"
|
|||||||
alias ghnew="gh repo create"
|
alias ghnew="gh repo create"
|
||||||
alias ghfork="gh repo fork"
|
alias ghfork="gh repo fork"
|
||||||
alias ghci="hub ci-status --verbose"
|
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
|
# Docker
|
||||||
@@ -172,9 +179,10 @@ make_hugo() {
|
|||||||
# parentheses lets us cd to Hugo path without changing our current location
|
# parentheses lets us cd to Hugo path without changing our current location
|
||||||
(
|
(
|
||||||
cd "$GOPATH/src/github.com/gohugoio/hugo" \
|
cd "$GOPATH/src/github.com/gohugoio/hugo" \
|
||||||
|
&& git checkout master \
|
||||||
|
&& mage uninstall \
|
||||||
&& git pull origin master \
|
&& git pull origin master \
|
||||||
&& git reset --hard HEAD \
|
&& git reset --hard HEAD \
|
||||||
&& git checkout master \
|
|
||||||
&& mage -v hugo \
|
&& mage -v hugo \
|
||||||
&& HUGO_BUILD_TAGS=extended mage -v install
|
&& HUGO_BUILD_TAGS=extended mage -v install
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user