Git Shell Commands
For this collection of examples, assume that Git
/Jekyll
users Ted
and Bill
have the following configuration blocks within their local ~/.ssh/config
files…
Bill
‘s ~/.ssh/config
file
Host bill
IdentitiesOnly yes
IdentityFile ~/.ssh/private.key
HostName devs.lan
User Bill
Ted
‘s ~/.ssh/config
file
Host ted
IdentitiesOnly yes
IdentityFile ~/.ssh/private.key
HostName devs.lan
User Ted
… where ~/.ssh/private.key
is the file path their respective private key for authenticating to the server that Joanna
and Elizabeth
have setup.
The above configurations enables terse git-shell-commands
such as…
ssh bill list git-shell-commands
Usage Examples
-
Bundle Install
The
bundle-install
client script installsGem
andJekyll
dependencies for named repository -
Copy Theme
The
copy-theme
client script copies source Theme files listed in named repository’s_config.yml
site configuration file -
Edit Configurations
The
edit-configs
client script is currently wired to allow adding GitHub API token configurations to${HOME}/.config/jekyll-build
directory -
Git Checkout Branch
Short-cut for
git checkout
orgit -b checkout
for named repository -
Git Initialize
The
git-init
client script makes new repositories under${HOME}/git
ready forgit clone
and/orgit push
operations -
Git Set Permissions
The
git-set-permissions
client script designed to refresh permissions for named repository -
Jekyll Build
The
jekyll-build
client script builds static site files for name repository under${HOME}/www
-
Jekyll Initialize
The
jekyll-init
client script starts a newgit
repository with agh-pages
branch ready forgit clone
,git push
, andjekyll-build
operations -
List
The
list
client script lists files and/or directory paths under${HOME}
. -
Repository Remove
The
repo-remove
client script removes named repository from${HOME}/git
-
WWW Remove
The
www-remove
client script removes named repository’s static files from${HOME}/www
-
WWW Set Permissions
The
www-set-permissions
client script resets static file permissions for named repository under${HOME}/www