Addyosmani dotfiles

The dotfiles I use can be found on Addyosmani’s github. To install simply copy this into the terminal, (first install git) $ git clone https://github.com/addyosmani/dotfiles.git && cd dotfiles && ./sync.sh You may need to prepend this with ‘sudo’ and you may need to reboot for it to work.

GIT Notes: Remote Repositories

GIT Succinctly – free eBook from Synfusion Chapter 6 Remote Repositories Manage connections to other repositories, and list them with, $ git remote To get more information about remote repos, $ git remote -v Create a new connection to a remote repository, $ git remote add &ltuser-name&gt &ltpath-to-repo&gt Now you can reach that repo with…Read More

GIT Notes: Branches

GIT Succinctly – free eBook from Synfusion Chapter 5 Branches A new branch is a new development environment with an isolated working directory, staging and project history. ‘git branch’ is used for listing, creating, and deleting branches. To view existing branches, $ git branch The output will indicate the currently checkedout branch with an asterisk….Read More

GIT Notes: Undoing Changes

GIT Succinctly – free eBook from Synfusion Chapter 4 Undoing Changes Undoing changes in git could mean, Undo changes in working directory Undo changes in staging area Undo a entire commit Changes can be made by deleting a commit or by using a new commit to undo changes introduced by the first commit. The recent…Read More

GIT Notes: Recording Changes

GIT Succinctly – free eBook from Synfusion Chapter 3 Recording Changes A ‘snapshot’ is a complete record of state of files, not of differences between other states. ‘staging’ allows you choose what changes go into the commit. To stage files, $ git add (can multiple files be listed here?) or to stage all, $ git…Read More

GIT Notes: Overview & Configuration

GIT Succinctly – free eBook from Synfusion Chapter 1 Overview working directory staging commited history development branch Chapter 2 Configuration Configuration file in home directory, $ cat ~/.gitconfig To git init a directory, $ git init &ltpath-to-directory&gt Omit path to git init current directory. Includes a directory ‘.git’. ‘clone’ downloads a complete copy of repo….Read More