This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
branches = "!f(){ git reflog | egrep -io \"moving from ([^[:space:]]+)\" | awk '{ print $3 }' | awk ' !x[$0]++' | egrep -v '^[a-f0-9]{40}$' | head; }; f" | |
copy = "!f(){ git rev-parse --abbrev-ref HEAD | tr -d '\n' | pbcopy; }; f" | |
delete-merged = "!f(){ git fetch --all; git checkout origin/develop; git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d; }; f" | |
forgot = commit -a --amend -C HEAD | |
history = for-each-ref --sort=-committerdate refs/heads/ --count=20 --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))' | |
last = log -1 HEAD | |
load = "!f(){ git checkout $1; git reset --soft HEAD~; git unstage .; }; f" | |
merge-last = "!f() { last_branch=$(git rev-parse --abbrev-ref @{-1} | tr -d '\n'); echo $last_branch; git merge --no-ff $last_branch; }; f" | |
rank = shortlog -sn --no-merges |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creates a modal that builds out your QA links for you | |
// Create a new Bookmark, and use the code below as the URL (name can be anything) | |
javascript:(function(){injectjQuery=function(){jq=document.createElement("div"),html="<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' crossorigin='anonymous'><script src='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/js/bootstrap.min.js' integrity='sha384-a5N7Y/aK3qNeh15eJKGWxsqtnX/wWdSZSKp+81YjTmS15nvnvxKHuzaWwXHDli+4' crossorigin='anonymous'><\/script>",jq.innerHTML=html.replace("/","/"),document.getElementsByTagName("head")[0].appendChild(jq)},injectBootstrap=function(){bs=document.createElement("div"),html="<script src='https://code.jquery.com/jquery-3.2.1.slim.min.js' integrity='sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN' crossorigin='anonymous'><\/script><script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js' integrity='sha384-ApNbgh9B+Y1QKtv3Rn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Parses out a new feature branch name for you, as long as you are viewing a jira task | |
// Create a new Bookmark, and use the code below as the URL (name can be anything) | |
javascript:(function(){String.prototype.replaceAll=function(search,replacement){var target=this;return target.replace(new RegExp(search,'g'),replacement)};var fullTitle=document.getElementById('summary-val').textContent.toLowerCase(),taskNumber=document.getElementById('key-val').textContent,titleArray=fullTitle.split('|').map(function(ele){return ele.trim()}),taskName=titleArray.pop().replaceAll(' ','-'),affectedTheme=titleArray.join('-').replaceAll(' ','-');var site=null;prompt('Copy to clipboard: Ctrl+C, Enter', 'feature/'+taskNumber+'__'+affectedTheme+'__'+taskName);}()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a new Bookmark, and use the code below as the URL (name can be anything) | |
javascript:(function(){window.location = window.location.href.split('?')[0] + '?lp=' + prompt('Enter a Landing Page #');}()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
attask() { | |
x-www-browser https://blueacorn.attask-ondemand.com/task/view?ID=$1 | |
} | |
## For OSX: | |
#attask() { | |
# /usr/bin/open -a "/Applications/Google Chrome.app" 'https://blueacorn.attask-ondemand.com/task/view?ID='$1 | |
#} |