Skip to content

Instantly share code, notes, and snippets.


Zika Zeka13

  • Tel Aviv
View GitHub Profile
kiview / upgrade.yml
Last active Sep 7, 2020
Ubuntu upgrade with Ansible
View upgrade.yml
- hosts:
- all
become: true
- name: Update apt cache
apt: update_cache=yes
- name: Upgrade packages
apt: upgrade=dist
lukechilds /
Created Aug 9, 2016
Shell - Get latest release from GitHub
get_latest_release() {
curl --silent "$1/releases/latest" | # Get latest release from GitHub api
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
# Usage
# $ get_latest_release "creationix/nvm"
# v0.31.4
blackfalcon /
Last active Oct 29, 2020
Git basics - a general workflow

Git-workflow or feature branching

When working with Git, there are two prevailing workflows are [Gitflow][gitflow] and [feature branches][feature]. IMHO, being more of a subscriber to continuous integration, I feel that the feature branch workflow is better suited, and the focus of this article.

If you are new to Git and Git-workflows, I suggest reading the [ Git Workflow][article] article in addition to this as there is more detail there than presented here.

I admit, using Bash in the command line with the standard configuration leaves a bit to be desired when it comes to awareness of state. A tool that I suggest using follows these instructions on [setting up GIT Bash autocompletion][git-auto]. This tool will assist you to better visualize the state of a branch in regards to changes and being in sync with the remote repo.

Basic branching

You can’t perform that action at this time.