Guide for setting up a GIT Repository on local machine
Show “Hidden Files in OS X”
To enable hidden files/folders in finder windows:
- Open Finder
- Open the Utilities folder
- Open a terminal window
- Copy and paste the following line in:
- defaults write com.apple.Finder AppleShowAllFiles YES
- Press return
- Now hold ‘alt’ on the keyboard and right click on the Finder icon
- 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
- Run these commands:
- a. chmod 600 config
- b. chmod 600 id_rsa
- Then, run these commands from the directory where you want to save the repository:
- a. git clone git@alexandria.ucmerced.edu:cms-theme-inception
- 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
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.