remove last commit from git and github
git push -f origin HEAD^:master
# settig default permissions, r/rw to your user and your default group | |
umask 0002 | |
# return if not running interactively | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines or lines starting with space in the history | |
HISTCONTROL=ignoreboth:erasedups | |
# ignores placing the exit command in history |
(seed) => | |
{ | |
const n = Math.sin(seed); | |
return n - Math.floor(n); | |
}; |
#!/bin/bash | |
docker run \ | |
-it \ | |
--rm \ | |
--volume /etc/localtime:/etc/localtime:ro \ | |
--volume `pwd`/.npmrc:/root/.npmrc \ # notice the login credentials that needs to be mounted | |
--volume `pwd`:/app \ | |
--workdir /app \ | |
node /bin/bash -c " |
#!/bin/bash | |
# note that all commits will have the same commit message | |
if [ $# -eq 1 ]; then | |
MSG=$1 | |
else | |
read -p "commit message: " MSG | |
fi | |
for d in */ ; do |
remove last commit from git and github
git push -f origin HEAD^:master