Using Git with Eclipse

CLONING IN ECLIPSE
1. Download egit plugin for eclipse (no need for jgit or anything Java unless that is what you are using – personally that file always throws my system off)
2. Open Git Repository view in Eclipse – Also go to github.com and check for repositories (If need be create git repository fist before proceeding with Eclipse)
3. Click Clone Git Repository in Eclipse
4. Go to Github to view Repositories – Switch Context is need be
5. Copy HTTP URL
6. Add HTTP URL to URI in Source Git Repository and include password (all other info should pre-populate)
7. Click next
8. Check Repository to be cloned
9. Create folder name and clone files to folder

VIEW IN PHP PERSPECTIVE
1. Right Click in PHP Explore and select Import
2. Select Projects from Git and click next
3. Select Repository to be imported (newly cloned repository) and click next
4. Click finish with Use the New Projects wizard and automatically share selected
5. In wizard PHP/PHP Project should be selected, click next
6. Create a local PHP Project, give Project name, click next, click next, click finish

SETTING UP PAGES
config.php
1. Create config file on the same level as the root folder
2. In config set up all definitions (see config file at bottom)
3. Importantly set up definitions for CDN, IMAGES and JAVASCRIPT both secure and non-secure
hosts
4. Create hostnames in c:\windows\system32\drivers\etc\hosts (see host file at bottom)
5. This will be where you connect your local host or $_SERVER['SERVER_NAME'] and definitions independently
httpd.conf
6. Create virtual hosts in C:\Apache2\conf\httpd.conf
7. Set server name with document root.
8. Be sure to set directory with proper allowances and over rides

Git Bash
1. Go to directory – cd /c/Apache2/htdocs/projectName
2. Check status – git status
3. Pull – git pull
4. Recheck status (redundant but good to do) – git status

8,465 thoughts on “Using Git with Eclipse

  1. Wow that was unusual. I just wrote an extremely long
    comment but after I clicked submit my comment didn’t appear.
    Grrrr… well I’m not writing all that over again. Anyway,
    just wanted to say wonderful blog!

  2. Ahaa, its fastidious discussion concerning this piece of writing here at this blog, I have read all that, so at this time me also commenting here.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy This Password *

* Type Or Paste Password Here *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>