diff options
| author | Simen A. W. Olsen <so@bjerk.io> | 2022-08-24 13:53:40 +0200 |
|---|---|---|
| committer | Simen A. W. Olsen <so@bjerk.io> | 2022-08-24 13:54:17 +0200 |
| commit | 07c6460b70b2439b7d574625c7eefe27e026745b (patch) | |
| tree | 69323ee565c590bff5e872db057efa176e154b27 | |
| parent | f13d79c81e3e551653b1a720f658a2e0822835a4 (diff) | |
| download | dotfiles-07c6460b70b2439b7d574625c7eefe27e026745b.tar.gz dotfiles-07c6460b70b2439b7d574625c7eefe27e026745b.zip | |
always checkout from main
| -rw-r--r-- | .aliases | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,6 +1,6 @@ # Git aliases alias git-unpushed='git log --branches --not --remotes --no-walk --decorate --oneline' -alias gb='git checkout -b' +alias gb='git checkout -b $1 main' alias gfr='git fetch upstream && git rebase upstream/master' alias git-undo='git reset --soft HEAD~1' alias git-clean-branches="git for-each-ref --format '%(refname:short)' refs/heads | grep -v 'master\|main' | xargs git branch -D" |
