git reset HEAD@{index}
git reset --hard <commit-index>
git add <file-name>/ <.>
git commit --amend
// Use this to just ammend the last commit message
(while in master do:)
# installs the latest version of docker-stable and edge | |
# from https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-repository | |
# TODO: enable optional installation of specific versions | |
sudo apt-get remove docker docker-engine docker.io | |
sudo apt-get update | |
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
# indicates which git branch one is currently working on | |
# e.g musemby@server:~/scripts/ (fix-weird-bug)$ (currently on the fix-weird-bug branch) | |
# paste this into the .bashrc file and source it | |
function parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
GREEN="\[\033[0;32m\]" | |
NO_COLOR="\[\033[0m\]" | |
LIGHT_CYAN="\[\033[0;96m\]" |
git reset HEAD@{index}
git reset --hard <commit-index>
git add <file-name>/ <.>
git commit --amend
// Use this to just ammend the last commit message(while in master do:)