Tags » Git

Setting up Open Chef Server and a Workstation

The quick and dirty way…

Prep work

For me, I stood up two Centos 6.5 instances in virtualbox. I did the basics of installing the EPEL repo, groupinstall of “Base” and “developer tools” in YUM, setup and configured a user for myself. 648 more words


More Commits via the GitHub API

I wrote a bit ago about making commits via the GitHub API. That post outlined making changes in two simplified situations: making changes to a single file and making updates to two existing files at the root of the repository. 2,358 more words


SOLUTION: fatal: CRLF would be replaced by LF

1. Install dos2unix. It’s a DOS/MAC to UNIX and vice versa text file format converter.

$> sudo apt-get install dos2unix

On a mac

$> brew install dos2unix… 41 more words

Export Untracked, modified, moved and deleted files from a Git repository to archive

Today I wanted to export to a .tar.gz archive all unstracked (new) , modified and deleted files from a Git repository. After some searching, I found… 76 more words


Git | Migrate SVN repo to Git

1. List all SVN committers

From the root of the local Subversion checkout, run:

$ svn log -q | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" <"$2">"}' | sort -u > authors-transform.txt
… 285 more words

GIT | Autocomplete on mac OS X

$ curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
$ echo "source ~/.git-completion.bash" >> ~/.bash_profile

Source & more on git aliases here.

Os X

See changes in Git after staging change

On git and want to see the changes on files after you stage it?

git diff --cached file-to-check

Also if you want to see the difference of hte file with repo

git diff HEAD file-to-check