Friday, October 5, 2012

Obtain IBCP Repository on Windows

There are two ways to obtain the IBCP repositories on Windows.  The first is using the MSYS command line, simply use the git clone command the same as on Linux:
git clone https://github.com/thunder422/ibcp.git
The second is using the Git GUI, first start the GUI by selecting Start, All Programs, Git, Git GUI.  Select Clone Existing Repository.  Enter https://github.com/thunder422/ibcp.git in the Source Location.  Enter C:/MinGW/msys/1.0/home/username (where username is your user name) in the Target Directory (or browse you MSYS home directory and add "/ibcp" to the end in the Target Directory entry, but don't use the Make New Folder in the location browser dialog to create the ibcp directory or an error will cloning).  Now click the Clone button.

Once the repository is cloned, the Git Gui (ibcp) window is presented, which will be mostly empty and just below the menu bar, there is a line that has the Current Branch: master indicating the current branch.  While it doesn't appear that anything was downloaded, you can see the repository by selecting Visualize All Branch History in the Repository menu.  This will start the gitk GUI.

From the gitk GUI, all the commits are in the upper pane, the differences of the currently selected commit is shown in the lower left pane and the files modified for this commit is shown in the lower right pane.  Though not obvious, the sizes of each pane can be adjusted by maneuvering the mouse cursor to the area between the panes until the mouse changes to the double arrow, then click, hold and drag to the desired size.  For the upper and lower panes, this area is between the Find next/prev line (used for finding commits) and the Search line (for searching the differences).  The sizes of the three columns in the upper pane can also be adjusted.

The gitk GUI also has several options for searching through the commits and how to display the differences.  Next up, building on Windows...

No comments:

Post a Comment

All comments and feedback welcomed, whether positive or negative.
(Anonymous comments are allowed, but comments with URL links or unrelated comments will be removed.)