====== Git ====== ===== Workflow ===== A useful pattern for tilde work: keep a local git repo that mirrors your tilde home directory plus server configs. Author changes locally, then push to tilde via rsync and to a git remote for backup. ===== Aliases ===== alias gs='git status' alias ga='git add' alias gc='git commit' alias gp='git push' alias gl='git log --oneline' alias gd='git diff' ===== Sync to tilde.town ===== rsync -avz ./dir/ tilde.town:~/ # Runs: rsync -avz . tilde.town:~ Excludes: ''.ssh'', ''mbox'', ''.DS_Store'', ''node_modules'', ''_site'', ''.git'' ===== See Also ===== * [[terminal:tools:start|Terminal Tools Index]] * [[terminal:tools:rsync|rsync]] * [[tilde:start|tilde.town]] * [[terminal:start|Return to terminal]]