#!/bin/sh esc=$(printf '\033') red="${esc}[31m" grn="${esc}[32m" yel="${esc}[33m" blu="${esc}[34m" mag="${esc}[35m" cyn="${esc}[36m" lred="${esc}[1;31m" lgrn="${esc}[1;32m" lyel="${esc}[1;33m" lblu="${esc}[1;34m" lmag="${esc}[1;35m" lcyn="${esc}[1;36m" lwht="${esc}[1;37m" lblk="${esc}[38;5;241m" rst="${esc}[0m" clear cat << eos ${mag} ██ ██ █████ ░░ ░██ ██ ██ ██░░░██ ██ ██████ ██████ ██████ ██ ██ ██ ██ ░░██ ██ ░██ ░██░██░░░██░ ██░░░░ ░░░░░░██ ░██ ░██░██ ░██ ░░███ ░░██████░██ ░██ ░░█████ ███████ ░░██ ░██ ░░██ ░██ ░██ ░░░░░██░██ ░██ ░░░░░██ ██░░░░██ ░░████ ░░████ ██ █████ ░██ ░░██ ██████ ░░████████ ░░██ ░░██ ██ ░░░░░ ░░ ░░ ░░░░░░ ░░░░░░░░ ░░ ░░ ░░ ${rst} - pyratebeard * ∗nix wizard * terminal-mancer * advocate of * {foss,privacy,security} * mostly beard and coffee * pyratebeard.net * gitlab.com/pyratebeard eos printf "" ; read -r key README.md Could not get sha1 for HEAD. Skipping. eos printf "" ; read -r key README.md Could not get sha1 for HEAD. Skipping. ${yel}──── ─${rst} git status On branch main No commits yet Untracked files: (use "git add ..." to include in what will be committed) ${lyel}README.md${rst} nothing added to commit but untracked files present (use "git add" to track) Could not get sha1 for HEAD. Skipping. eos printf "" ; read -r key ..." to unstage) ${lgrn}new file: README.md${rst} Could not get sha1 for HEAD. Skipping. eos printf "" ; read -r key and then push using the remote name git push eos printf "" ; read -r key and then push using the remote name git push ${yel}──── ─${rst} git remote add origin git@gitlab.com:pyratebeard/gitsavvy.git eos printf "" ; read -r key main Branch 'main' set up to track remote branch 'main' from 'origin'. eos printf "" ; read -r key main Branch 'main' set up to track remote branch 'main' from 'origin'. ${yel}──── ─${rst} git status On branch main Your branch is up to date with 'origin/main'. nothing to commit, working tree clean eos printf "" ; read -r key > ahoy.sh << EOF heredoc> #!/bin/sh heredoc> echo "ahoy world!" heredoc> EOF eos printf "" ; read -r key > ahoy.sh << EOF heredoc> #!/bin/sh heredoc> echo "ahoy world!" heredoc> EOF ${yel}──── ─${rst} git status On branch branch_a Untracked files: (use "git add ..." to include in what will be committed) ${lyel}ahoy.sh${rst} nothing added to commit but untracked files present (use "git add" to track) eos printf "" ; read -r key > ahoy.sh << EOF heredoc> #!/bin/sh heredoc> echo "ahoy world!" heredoc> EOF ${yel}──── ─${rst} git status On branch branch_a Untracked files: (use "git add ..." to include in what will be committed) ${lyel}ahoy.sh${rst} nothing added to commit but untracked files present (use "git add" to track) ${yel}──── ─${rst} git add ahoy.sh eos printf "" ; read -r key > ahoy.sh << EOF heredoc> #!/bin/sh heredoc> echo "ahoy world!" heredoc> EOF ${yel}──── ─${rst} git status On branch branch_a Untracked files: (use "git add ..." to include in what will be committed) ${lyel}ahoy.sh${rst} nothing added to commit but untracked files present (use "git add" to track) ${yel}──── ─${rst} git add ahoy.sh ${yel}──── ─${rst} git status On branch branch_a Changes to be committed: (use "git rm --cached ..." to unstage) ${lgrn}new file: ahoy.sh${rst} eos printf "" ; read -r key > ahoy.py << EOF heredoc> #!/usr/bin/env python heredoc> print("ahoy matey!") heredoc> EOF eos printf "" ; read -r key > ahoy.py << EOF heredoc> #!/usr/bin/env python heredoc> print("ahoy matey!") heredoc> EOF ${yel}──── ─${rst} git status On branch branch_b Untracked files: (use "git add ..." to include in what will be committed) ${lyel}ahoy.py${rst} nothing added to commit but untracked files present (use "git add" to track) eos printf "" ; read -r key > ahoy.py << EOF heredoc> #!/usr/bin/env python heredoc> print("ahoy matey!") heredoc> EOF ${yel}──── ─${rst} git status On branch branch_b Untracked files: (use "git add ..." to include in what will be committed) ${lyel}ahoy.py${rst} nothing added to commit but untracked files present (use "git add" to track) ${yel}──── ─${rst} git add ahoy.py eos printf "" ; read -r key > ahoy.py << EOF heredoc> #!/usr/bin/env python heredoc> print("ahoy matey!") heredoc> EOF ${yel}──── ─${rst} git status On branch branch_b Untracked files: (use "git add ..." to include in what will be committed) ${lyel}ahoy.py${rst} nothing added to commit but untracked files present (use "git add" to track) ${yel}──── ─${rst} git add ahoy.py ${yel}──── ─${rst} git commit -m "ahoy python script" [branch_b f71226d] ahoy python script 1 file changed, 2 insertions(+) create mode 100644 ahoy.py eos printf "" ; read -r key ..." to update what will be committed) (use "git restore ..." to discard changes in working directory) ${cyn}modified: ahoy.sh${rst} no changes added to commit (use "git add" and/or "git commit -a") eos printf "" ; read -r key ${rst} ${lgrn}main${rst}${yel})${rst} Merge: f71226d f2122e0 Author: pyratebeard Date: Sat Jul 10 22:00:46 2021 +0100 Merge branch 'branch_a' ${yel}commit f2122e08245d59ff63ca1f0c0c558868fee865a5 (${rst}${lgrn}branch_a${rst}${yel})${rst} Author: pyratebeard Date: Sat Jul 10 21:54:05 2021 +0100 changed world to matey ${yel}commit f71226dc6db22c799f267adbf5728ab41c84ac6a (${rst}${lgrn}branch_b${rst}${yel})${rst} Author: pyratebeard Date: Sat Jul 10 21:48:20 2021 +0100 ahoy python script :█ eos printf "" ; read -r key Date: Sat Jul 10 21:43:39 2021 +0100 new ahoy script ${yel}commit e0722669a877dbccd23d8b1eb22e0e70fe1ddb38 (${rst}${lred}origin/main${rst}${yel})${rst} Author: pyratebeard Date: Sat Jul 10 21:35:10 2021 +0100 initial commit eos printf "" ; read -r key ${rst}${lgrn}main${rst}${yel},${rst} ${lred}origin/main${rst}${yel})${rst} Merge branch 'branch_a' ${yel}f2122e08245d59ff63ca1f0c0c558868fee865a5 (${rst}${lgrn}branch_a${rst}${yel})${rst} changed world to matey ${yel}f71226dc6db22c799f267adbf5728ab41c84ac6a (${rst}${lgrn}branch_b${rst}${yel})${rst} ahoy python script ${yel}80a845eb402506ff4b2f04e399322c3f1320d625${rst} new ahoy script ${yel}e0722669a877dbccd23d8b1eb22e0e70fe1ddb38${rst} initial commit eos printf "" ; read -r key ${rst}${lgrn}main${rst}${yel},${rst} ${lred}origin/main${rst}${yel})${rst} Merge branch 'branch_a' ${yel}f2122e08245d59ff63ca1f0c0c558868fee865a5 (${rst}${lgrn}branch_a${rst}${yel})${rst} changed world to matey ${yel}f71226dc6db22c799f267adbf5728ab41c84ac6a (${rst}${lgrn}branch_b${rst}${yel})${rst} ahoy python script ${yel}80a845eb402506ff4b2f04e399322c3f1320d625${rst} new ahoy script ${yel}e0722669a877dbccd23d8b1eb22e0e70fe1ddb38${rst} initial commit ${yel}──── ─${rst} git log --pretty=format:"%h - %an, %ad : %s" d32dd04 - pyratebeard, Sat Jul 10 22:00:46 2021 +0100 : Merge branch 'branch_a' f2122e0 - pyratebeard, Sat Jul 10 21:54:05 2021 +0100 : changed world to matey f71226d - pyratebeard, Sat Jul 10 21:48:20 2021 +0100 : ahoy python script 80a845e - pyratebeard, Sat Jul 10 21:43:39 2021 +0100 : new ahoy script e072266 - pyratebeard, Sat Jul 10 21:35:10 2021 +0100 : initial commit eos printf "" ; read -r key