on 2012-07-26
echo STARTING CLASS
git --version
which git
brew update && brew upgrade
ls
clear
pwd
#!/bin/bash | |
# | |
# Displays the current git branch name and the dirty state in your Bash shell | |
# prompt. Add a line like this to your ~/.bashrc file: | |
# | |
# . ~/path/to/gist/bash-git-prompt | |
# | |
# To use this, you must enable "enable programmable completion features". | |
# Look at your ~/.bashrc for something like: | |
# |
(echo -en "blob $(wc -c < $file)\00";cat $file)|sha1sum -b | cut -d " " -f 1 | |
or of course | |
git hash-object $file |
I was inspired by Selena Deckelmann's list of Career Resources for Women (http://www.chesnok.com/daily/career-resources-for-women/), but couldn't think of much to contribute. So I thought maybe those of us already in the field and in a position to mentor could work on creating more. Please fork or comment and add your own!
# Upgraded git using Homebrew and now your __git_ps1() fails. Try something like this | |
# NB Still very fragile as had embedded version no | |
# enable git programmable completion features | |
if [ -f /usr/local/etc/bash_completion.d/git-completion.bash ]; then | |
. /usr/local/etc/bash_completion.d/git-completion.bash | |
fi | |
# enable git prompt |
#!/usr/bin/env bash | |
# A wrapper for SVN. Designed for | |
# GIt users who need access to command line SVN. Tries to adopt as much information from Git config | |
# Command Line SVN users who are working with people using TortoiseSVN on Windows | |
# People who have use build scripts that depend on the outfrom from svn info when they in a Git checkout |
#!/bin/ksh | |
# Compare 2 directories for differences (e.g. current release and new release) | |
CURRENT=$1 ; shift | |
NEW=$1; shift | |
CURRENTDIFFFILE=/tmp/$(echo $CURRENT | sed -e 's/[/.][/.]*/_/g') | |
NEWDIFFFILE=/tmp/$(echo $NEW | sed -e 's/[/.][/.]*/_/g') |
#!/bin/sh | |
# Copyright (C) 2012-15 Alec Clews | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# This program is distributed in the hope that it will be useful, |
# Generate Perl POD (Plain Old Documentation) | |
# | |
.SUFFIXES: | |
.SUFFIXES: .html |
#!/usr/bin/env bash | |
# Wrapper script for git | |
if [[ -x /usr/local/bin/git ]] ; then | |
GIT=/usr/local/bin/git #Set for your environment" | |
elif [[ -x /usr/bin/git ]] ; then | |
GIT=/usr/bin/git #Set for your environment" | |
else | |
echo Git not installed correctly? |