Skip to content

Chiragm550/dbms-proj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Collaboration Guide for GitHub Repository

This guide provides all the steps needed to collaborate on this repository, including setting up a local copy, creating a separate branch, staying updated with the main branch, and pushing changes.


Table of Contents

  1. Cloning the Repository
  2. Creating a New Branch
  3. Making Changes
  4. Committing Changes
  5. Keeping Your Branch Updated with the Main Branch
  6. Pushing Changes to the Remote Repository
  7. Creating a Pull Request

1. Cloning the Repository

  1. Open the GitHub repository page (the main repository you want to contribute to).

  2. Click on the Code button and copy the HTTPS or SSH link.

  3. Open your terminal (e.g., Command Prompt, Git Bash) and clone the repository by running:

    git clone <repository-url>

2. Creating a New Branch

To keep your work separate from the main branch, create a new branch.

  1. Create and switch to a new branch with a descriptive name:

    git checkout -b <branch-name>
    
    

3. Making changes

  1. Open the repository files in a code editor and make the necessary changes.
  2. Once you’re done, save your changes.

4. Committing Changes

  1. After making your changes, add them to the staging area by running:

    git add .
    git commit -m "Brief description of changes"
    
    

5. Keeping Your Branch Updated with the Main Branch

To stay up to date with the latest changes on the main branch, follow these steps:

  1. Switch to the main branch:
    git checkout main
  2. Pull the latest changes from the remote main branch:
     git pull origin main
  3. Switch back to your branch
    git checkout <branch-name>
  4. Merge the main branch into your branch to incorporate latest updates:
    git merge main
    

6. Pushing Changes to the Remote Repository

Once your branch is updated and your changes are ready:

  1. Push your branch to the remote repository:

    git push origin <branch-name>
    

7. Creating a Pull Request

  1. Go to the GitHub repository page in your browser.
  2. You should see a notification to create a pull request for your branch. Click on Compare & pull request.
  3. Add a title and description for your pull request, then click Create pull request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published