Skip to content

GIT Repository Guide

x

Error message

  • Notice: Only variables should be passed by reference in include() (line 191 of sites/all/themes/UCMerced/templates/partials/_header.tpl.php).
  • Notice: Only variables should be passed by reference in include() (line 417 of sites/all/themes/UCMerced/templates/partials/_header.tpl.php).

Guide for setting up a GIT Repository on local machine

 

Show “Hidden Files in OS X”

 

To enable hidden files/folders in finder windows:

  1. Open Finder
  2. Open the Utilities folder
  3. Open a terminal window
  4. Copy and paste the following line in:
  5. defaults write com.apple.Finder AppleShowAllFiles YES
  6. Press return
  7. Now hold ‘alt’ on the keyboard and right click on the Finder icon
  8. Click on Relaunch

You should find you will now be able to see any hidden files or folders. One you are done, perform the steps above however, replace the terminal command in step 4 with:

defaults write com.apple.Finder AppleShowAllFiles NO

 

+++++++++++++++++++++++++++++++++++++++++++++++++++++

Generate an SSH key for any new machine, if not done so already

From the terminal, run this command:

ssh-keygen

It will then generate the keys and prompt you where to save them; use the default path it gives you:

Generating public/private rsa key pair.

Enter file in which to save the key (/Users/myusername/.ssh/id_rsa):

Finally, navigate into the .ssh directory and email me the file named ‘id_rsa.pub’.

 

CHANGE INTO .SSH DIRECTORY

OK, from the terminal:

1. Change into your .ssh directory

  1. Run these commands:
    1. a. chmod 600 config
    2. b. chmod 600 id_rsa
  2. Then, run these commands from the directory where you want to save the repository:
    1. a. git clone git@alexandria.ucmerced.edu:cms-theme-inception
    2. git clone git@alexandria.ucmerced.edu:cms-theme-pano

 

After you do this, these directories should be created in the location from which you ran these commands...


UCM IT VPN Setup

https://ucmerced.service-now.com/kb_view.do?sysparm_article=KB0010635


SOURCETREE

https://www.sourcetreeapp.com/

**More for S.Powers as he prefers a GUI instead of the Terminal.**

SCREEN CAST FOR USING SOURCETREE TO OPERATE GIT REPOSITORY

https://confluence.ucmerced.edu/pages/viewpageattachments.action?pageId=15273266&highlight=Using+SourceTree+on+OS+X.mp4 - Using+Git+on+OS+X+-+Cloning,+Committing+and+Pushing+Using+SourceTree-attachment-Using+SourceTree+on+OS+X.mp4

The repository we want for gateway is drupal-webkit, master branch. Check out master brand and click PULL to get the newest files.

 

If permissions are going thru, go to the Terminal and type ssh-add and hit ENTER. This will prompt you to type in your password.