Skip to content

Latest commit

 

History

History
86 lines (64 loc) · 6.67 KB

CONTRIBUTING.md

File metadata and controls

86 lines (64 loc) · 6.67 KB

Collaborating On The Static Website

Collaborating on the static website, following the exact way it worked on the Demo Project. Collaboration can be done using the "fork and branch" workflow, using the following steps:

  1. Start by navigating to the GitHub Repo.

  2. Check out the "Issues" tab. Click the link below:

  3. For the Issues, you must have been assigned to work on an issue, with your teammates. If you haven't but would like to, simply comment under the preferred issue.

  4. Start working on your issue with your team as soon as possible, and within the timeline for the deadline. You can follow the steps below to do so:

  5. Fork the forked repository for your team: As the team lead or an external collaborator, you will need to fork the main repository. You can do this by navigating to the GitHub Repo, and click on the "Fork" button. This creates a copy of the repository under your GitHub account. Use the link below:

  6. Send out collaboration invitations: After forking the repo, send out GitHub Collaboration invitations to the people you were assigned to work with, on the assigned GitHub issue.

  7. Clone the Forked Repository: Once you have forked the repository, clone it to your local machine using the git clone command. This creates a local copy of the repository that you can work with.

    git clone <your-forked-repo-url>
    
  8. Add the Original Repository as a Remote: To keep your forked repository in sync with the original repository, you need to add the original repository as a remote. Navigate to the cloned repository on your local machine using the cd command, and then add the remote using the git remote command:

    cd <cloned-repo-folder>
    git remote add upstream https://github.com/ALX-SE-Algorithmia/ALX-SE-Algorithmia.github.io
    
  9. Create a New Branch: Before making any changes, create a new branch in your local repository. This helps keep your changes isolated and organized. Use the git branch command followed by the branch name to create a new branch:

    git branch <branch-name>
    

    Kindly note that <branch-name should be your GitHub username. E.g: algorithmiase

  10. Switch to the New Branch: Switch to the newly created branch using the git checkout command:

git checkout <branch-name>
  1. Make Changes and Commit: Make the necessary changes to the codebase in your local repository. Once you have made the desired changes, stage the changes using git add and commit them using git commit:
git add fileName
git commit -m "Descriptive commit message"

Please ensure that your commit messages are very professional and are also descriptive, as we have learned in the ALX SE program. This is of high importance, so as to aid smooth and steady collaboration.

  1. Push Changes to Your Fork: Once you're done collaborating on the solution as a team, push the changes from your local branch to the branch of the forked repository on the remote server:
git push origin <branch-name>
  1. Create a Pull Request: Go to your forked repository on the hosting platform (e.g., GitHub), switch to the branch you just pushed, and click on the "New Pull Request" button. This will allow you to submit your changes to the original repository for review. When making pull requests, it is also important that your messages and descriptions are straightforward, and contain a description of your contribution, as in the Demo Project. This is extra-important. Tag the Code Review team, to notify them that you are finished with the issue you have been assigned to fix.
    You tag the Code Review Team by typing: @ALX-SE-Algorithmia/code-reviewing-team

  2. Wait for your pull request to be merged.

  3. Once your PR has been merged, you need to sync your forked repository with the changes made in the original repository. To do this, fetch the changes from the original repository using the remote you added earlier and then merge those changes into your local branch:

git fetch upstream
git merge upstream/main  # or upstream/master for older conventions

This will update your local branch with the latest changes from the original repository.

By following these steps, you can effectively collaborate on our Static GitHub Website.

Need More Clarifications?

Useful Links"