$ curl -fsSL https://raw.github.com/tcnksm/docker-alias/master/zshrc >> ~/.bashrc && source ~/.bashrc
# ------------------------------------
Originaly: https://stackoverflow.com/questions/39494631/gpg-failed-to-sign-the-data-fatal-failed-to-write-commit-object-git-2-10-0 | |
brew upgrade gnupg # This has a make step which takes a while | |
brew link --overwrite gnupg | |
brew install pinentry-mac | |
echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf | |
killall gpg-agent | |
echo "test" | gpg --clearsign # on linux it's gpg2 but brew stays as gpg |
https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History
Change multiple commits: git rebase -i HEAD~<number of commits>
'git pull --rebase --autostash' - this automatically stashes your local changes, pulls in new changes (and rebases if needed), and then pops the changes back off the stash.
Add repo to subdirectory
Since the value of $var is the empty string, this:
if [ $var == $var1 ]; then
expands to this:
if [ == abcd ]; then
which is a syntax error.
Step 1: Install Sonar Qube Scanner on Jekins
for(i=0;i++<100;console.log((i%3?'':'Fizz')+(i%5?'':'Buzz')||i)); |