Home > Software design >  How to add an existing GitHub repository into PHP project in Eclipse?
How to add an existing GitHub repository into PHP project in Eclipse?

Time:02-13

I worked with class mates on a project to build a static website using CSS and HTML. Then we used visual studios and our work was synchronized with GitHub. Now we are asked to continue our work adding PHP files using Eclipse IDE. My question is how can I add the existing repo on eclipse and share it with my friends?

CodePudding user response:

You would add it to the list of Git Repositories that Eclipse knows of, and then import the interesting part (or whole) of the working directory as a project. Check the online User Guide: enter image description here

Install updates (Newer code version)

git pull origin main

Git fetch

  1. Updates the current local working branch (currently checked out branch) Updates the remote tracking branches for all other branches.
  2. Updates the remote tracking branches for all other branches.

from freeCodeCamp

TLDR;

git pull REMOTE-NAME BRANCH-NAME

PHP Composer

https://getcomposer.org/

{
    "repositories": [
        {
            "url": "https://github.com/NAME/URI",
            "type": "git"
        }
    ]
}
  • Related