Presuming: you have an Angular 2 or 4 project ready to deploy to gh-pages, and that you’ve created a github repo connected to your local directory and git inited it. Also you need to have installed and be using angular-cli. If not look at this post. Angular 4 projects can be deployed on gh-pages by…Read More
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 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 <user-name> <path-to-repo> Now you can reach that repo with…Read More
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 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 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 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 <path-to-directory> Omit path to git init current directory. Includes a directory ‘.git’. ‘clone’ downloads a complete copy of repo….Read More