Skip to content

Instantly share code, notes, and snippets.

David Cotter davidcotter

Block or report user

Report or block davidcotter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View go.html
<script src=""></script>
<script src="" integrity="sha256-jrPLZ+8vDxt2FnE1zvZXCkCcebI/C8Dt5xyaQBjxQIo=" crossorigin="anonymous"></script>
<form id="form">
<br/>Plain: <input type="text" name="plain">
<br/>Password: <input type="text" name="password">
<br/><a href="#" id="go">Go</a>
View git branching notes
# Git branching notes
#Local Branching
git branch #show branches and which one you are currently on
git push #push any local changes to the remote repo
git branch david #create a local branch
git checkout david #switch to that branch
View Git branch in bash prompt
# Git branch in bash prompt
# At the top of .bashrc
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
function prompt_with_git_branch {
case $TERM in
You can’t perform that action at this time.