Your repository has two commits:
$ git log --oneline
957fbfb No, I am your father.
9bb71ff A long time ago in a galaxy far, far away....
# bash function, usage: $ ext [ext1] [ext2] | |
function ext() { | |
for f in *.$1; do mv $f `basename $f .$1`.$2; done; | |
} |
module Jekyll | |
# Sass plugin to convert .scss to .css | |
# | |
# Note: This is configured to use the new css like syntax available in sass. | |
class SassConverter < Converter | |
safe true | |
priority :low | |
def setup | |
return if @setup |
[ | |
{ | |
"homepage": "http://digitaljhelms.github.com", | |
"name": "digitaljhelms", | |
"description": "finally blogging...", | |
"author": "Jeremy Helms", | |
"post": { | |
"url": "http://digitaljhelms.github.com/howto/creating-a-branch-with-no-parents-or-history", | |
"slug": "creating-a-branch-with-no-parents-or-history", | |
"title": "Create a Git Branch without Parents or History", |
/* | |
* When you delete an array element using the delete | |
* operator, the array length is not affected. For example | |
* if you delete arr[2], arr[3] is still arr[3] and arr[2] | |
* is undefined. | |
*/ | |
arr = ['a', 'b', 'c', 'd'] | |
// ["a", "b", "c", "d"] | |
delete arr[2] |
# bash alias | |
alias subl='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl' | |
# bash function, usage: $ st -p [projectname] -opt2 -opt3 | |
function st() { | |
if [ -n "$1" -a -n "$2" ]; then # if more than one argument | |
if [ "$1" = "-p" -o "$1" = "--project" ]; then # if arg1 is -p or --project | |
local projectfile="$2" | |
[[ $projectfile != *.sublime-project ]] && projectfile="$2.sublime-project" # detect if arg2 already includes the ext | |
if [ -e $projectfile ]; then # does project file exist? |
This outline for building and installing Git has only been tested against Mac OS X 10.7.x (Lion). While these steps may work for previous versions of Mac OS X, I cannot confirm this. Furthermore, you're on your own, if you screw something up, it's not my fault.
Xcode 4 includes the Git binary at the application level so it's available to itself (located at /Applications/Xcode.app/Contents/Developer/usr/bin/git
). Additionally, Xcode 4 includes a new "Downloads" preference pane to install optional components, one of which are the Command Line Tools (similar to the Dev Tools package that shipped with older versions of Xcode) and once installed, Git (and many other utilities, such as make
) is installed at the system level (located at /usr/bin
).
*Note: You don't have to install Xcode to use the Command Line Tools; it can be downloaded independently from the Apple Developer site (you need to login, but it's free
#oneGoogleWrapper { | |
display: none; | |
} | |
#headerBar #promo_pack_bar { | |
display: none !important; | |
} | |
#main #start-page-recommendations-container { | |
display: none !important; | |
} |
Output flags returned by git fetch
(based on git version 1.7.8):
-
indicates a deleted ref (tag) fetch.c#L281*
indicates a new ref (tag, branch) fetch.c#L306+
indicates a successful forced update fetch.c#L336=
indicates a ref that was up to date fetch.c#L257!
indicates a ref that was rejected fetch.c#L271*Also note that in fast-forwards, the output contains ".."
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all --decorate=full" |