Friday, November 15, 2013

Git Commands


Create and checkout a branch

git checkout -b

This command creates a branch locally and then checks it out.


Create Branch

git branch

This command creates the branch in the local repository


Checkout Branch

git checkout

This command sets the current branch to


Check if a branch exists

git show-ref --verify --quiet refs/heads/int-2013.3
echo $?

git show-branch int-2013.3
echo $?


Sunday, February 24, 2013

diskpart

Diskpart is a utility to configure disks.    Once you know the tricks its relatively easy to use.

The way it works you first select a disk and then all operations are applied to the selected disk.   The command is below (note disk 1 was already selected, indicated by the *)


DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online         1862 GB      0 B
* Disk 1    Offline        1862 GB      0 B


DISKPART> select disk=1

Disk 1 is now the selected disk.


ASP.Net 5 - Simple Html Page App

Motivation As part of a recent undertaking to learn Angular JS I started using the beta version of ASP.Net 5.   I figured why not introdu...