The following instructions are for websites using the default UMN Drupal Enterprise configuration.
After you have installed UMN Drupal locally to work with the UMN Git repository, you can push code to your repository by following these steps.
Pushing code to your Git repository
- Open your terminal.
- If you have not cloned your site's repository to your local computer, run the command
git clone [clone URL] [name of directory]. - Run the command cd to navigate to your repository's main folder.
cd [name of directory] - Run the command
git checkoutto change branches to the one that should be updated. - Run the command
git pullto copy any changes from the github repository to your local repository. - Add or update the needed files in the local repository using a text editor.
- Run the command
git statusto show which files have changed. This indicates that files have been changed / added / deleted. - Run the command
git add .(You need to type the period too; this will add all the modified files to the commit.) - Run the command
git commit -m "[message about your commit]".- A message will display explaining which files were committed and what type of changes were made (i.e., add / change / delete.)
- Run the command
git pushto copy all the changed files from the local repository to your github repository.- After all steps have been completed, your shell will look similar to this:

- After all steps have been completed, your shell will look similar to this:
- Go to your repository through your web browser and verify that the changes are there. Your page should show the time of the latest commit.

Deploy the new code to your site
- Dev or Stage environment:
- Log in to Drupal Management with your UMN Internet ID and password (http://drupalmanagement.umn.edu/saml_login)
- Navigate to the site you are working on
- Click Deploy on the environment that you are working on.
- Confirm the deployment.
- Deployment takes approximately 10 minutes.
- You might need to clear the Drupal caches to see your changes.
- Production environment: Submit Drupal Support Request form requesting that your changes be deployed.