Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Eric Carlisle ecarlisle

View GitHub Profile
@ecarlisle
ecarlisle / git-aliases.sh
Last active Feb 10, 2019
Git aliases for a shell configuration.
View git-aliases.sh
# ---------- ADD ---------- #
alias ga = git add # Add new or changed files to the index.
alias gap = git add -p # Add new or changed files to the index by hunk.
# ---------- BRANCHES ---------- #
alias gb = git branch # View repository branches.
alias gbr = git branch -r # View remote branches.
alias gba = bit branch -a # View both local and remote branches.
# ---------- CHECKOUT ---------- #
View git-aliases.txt
alias ga="git add"
alias gap="git add -p"
alias gb="git branch"
alias gba="git branch all"
alias gc="git commit"
alias gcm="git commit -m"
alias gco="git checkout"
alias gcl="git clone"
alias gd="git diff"
alias gf="git fetch"
@ecarlisle
ecarlisle / jekyll-header-with-social-meta.html
Last active Jan 2, 2016
This is an optimized version of Jekyll's /_includes/head.html include. Liquid variables are created up top to keep the source DRY and clean. Included in this header are Open Graph and Twitter meta tags for social integration.
View jekyll-header-with-social-meta.html
{% assign full_url = site.baseurl | prepend: site.url %}
{% capture page_title %}
{% if page.title %}
{{ page.title }}
{% else %}
{{ site.title }}
{% endif %}
{% endcapture %}
{% assign page_title = page_title | strip_newlines | split " " | join " " %}
You can’t perform that action at this time.