'How to add an existing GitHub repository into PHP project in Eclipse?
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?
Solution 1:[1]
Git
Explanation: (Provided by google)
Git is software for tracking changes in any set of files, usually used for coordinating work among programmers collaboratively developing source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows.
How to use
Detailed instructions on how to install and setup are at
Configure
You might need to restart for git to properly work.
Use git -v to prove git has been properly installed, and then run
git config user.name "Your Name"
git config user.email "[email protected]"
Import a repository
TLDR from https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository
Run:
git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
Install updates (Newer code version)
git pull origin main
Git fetch
- Updates the current local working branch (currently checked out branch) Updates the remote tracking branches for all other branches.
- Updates the remote tracking branches for all other branches.
from freeCodeCamp
TLDR;
git pull REMOTE-NAME BRANCH-NAME
PHP Composer
{
"repositories": [
{
"url": "https://github.com/NAME/URI",
"type": "git"
}
]
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ryan The Ghost |

