diff options
author | Karel Kočí <karel.koci@nic.cz> | 2017-10-19 12:15:35 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2017-10-19 12:15:35 +0200 |
commit | c6cc9f526eaf1ab3f676d37c4f11dc013bdcde2a (patch) | |
tree | 7a6c012eab0e1bd751fc641942a02aee5d20f66c | |
parent | a42357cc347f4c79c595c95202366cfb4aeea6a3 (diff) | |
download | myconfigs-c6cc9f526eaf1ab3f676d37c4f11dc013bdcde2a.tar.gz myconfigs-c6cc9f526eaf1ab3f676d37c4f11dc013bdcde2a.tar.bz2 myconfigs-c6cc9f526eaf1ab3f676d37c4f11dc013bdcde2a.zip |
Add gitbnew function to shellrc
-rw-r--r-- | shellrc | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -90,6 +90,15 @@ gitbmerge() { ) } +# Create new branch from master +gitbnew() { + git branch "$1" master + local NW="$(git rev-parse --show-toplevel)-$1" + git worktree add "$NW" $1 + cd "$NW" + git submodule update --init --recursive +} + # Make screenshot xshot() { import -window "$(xdotool selectwindow)" ~/xshot_$(date +%F_%H%M%S_%N).png |