Git

Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Git Workflow

Tags:
Document Information
Document ID: 
app2011-019

In a recent post I described setting up a project's Git repository and cloning the project from the repository so you can make changes to the project.  In this post I will describe a recommended workflow for modifying a Git based project.

Assuming you have already created or have access to an existing git project the first step is to clone (git clone file:////SERVER3/DevelopmentDocs/gitRepository/<project name>), where <project name> is the name of the project and will be the output folder name.

Git best practices recommend working on a branch while making edits or changes to a project.  Working on a branch provides a temporary workspace where you can modify the applications files as much as you like withouth having to worry about overriting the applications core file.  To create a branch type "git checkout -b <branch name>", where <branch name> an be any name you like.

Make changes to the files that need modification.

Creating a Git Repository and Project

Tags:
Document Information
Document ID: 
app2011-018

We've been using Git to manage our Geoportal source code and the Drupal source code to the AZGS Document Repository website.  The following steps show an example of how to use Git to setup a repository, setup a project in the repository and clone the project for modifications.  Documentation on Git and what Git is can be found here.

Syndicate content