Innovation-driven professional with diverse experience in developing and modernizing software applications.
- United States
- https://www.linkedin.com/in/4cjanderson
Highlights
- Pro
Pinned Loading
-
Git delete merged branches
Git delete merged branches 1#! /bin/bash
2branchName=$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')
3git checkout "$branchName" \
4| git branch --merged \
5| grep -E --invert-match "(^\*|master|main|dev)" \
-
Git catch up current branch
Git catch up current branch 1#! /bin/bash
2# checkout-pull-prune.sh
3branchName=$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')
4git fetch origin "$branchName:$branchName"
5git merge "$branchName"
-
Git graph to HTML
Git graph to HTML 1#!/bin/bash
2script -q -c "git --no-pager log --decorate --graph --format='%C(auto,#aa5500) %h %C(auto,#55ff55) (%an %GK %G?) %Creset %s %cr %C(auto,#ffff55) %d' --date=relative --all --remotes=* -n 100" ../graph.txt && \
3ansi2html < ../graph.txt > ../graph.html
-
-
-
upgrades brew packages and restarts ...
upgrades brew packages and restarts the services that were updated 1#! /usr/bin/env bash
2brew upgrade | tee /tmp/brew.log
3cat /tmp/brew.log | grep "brew services restart" | xargs -n 4 -L 1 -I {} sh -c "{}"
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.