MrPilu / Git-for-Beginners

Collaborative web development with Git - An example scenario showcasing version control, feature branches, and CI/CD workflows for building a web application using front-end (HTML, CSS, JS) and back-end technologies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GIt-for-Beginners

How to Create a GitHub Repository and Upload Your Project

  1. Create a GitHub Account: If you don't already have a GitHub account, go to https://github.com/ and sign up for a new account.

  2. Log in to GitHub: Log in to your GitHub account using your credentials.

  3. Create a New Repository: Once you are logged in, click on the '+' sign in the top right corner and select "New repository" from the dropdown menu.

  4. Set Up the Repository:

    • Choose a unique and descriptive name for your repository.
    • Optionally, add a brief description of your project to let others know what it's about.
    • Decide whether you want the repository to be public (visible to everyone) or private (accessible only to you and collaborators).
    • Initialize the repository with a README file. This is helpful to provide some initial information about your project.
  5. Choose a License (Optional): If you want to add a license to your project (open-source projects usually have licenses), you can select one from the provided list. If you're unsure, you can skip this step and add a license later.

  6. Create the Repository: Click the "Create repository" button to create your new repository.

  7. Upload Your Project: After creating the repository, you can upload your project files to it using one of the following methods:

    a. Using GitHub Web Interface:

    • On the repository page, click on the "Add file" button, then choose "Upload files."
    • Drag and drop your project folder or files into the designated area, or click on the "choose your files" link to browse and select your files manually.
    • Once the files are selected, click on the "Commit changes" button to upload them.

    b. Using Git Command Line: If you have Git installed on your computer and are familiar with the command line, you can use the following commands to upload your project:

    # Clone the empty repository to your local machine
    git clone <repository_url>
    
    # Change directory to the cloned repository
    cd <repository_name>
    
    # Copy your project files into the repository folder
    
    # Add the files to the staging area
    git add .
    
    # Commit the changes
    git commit -m "Initial commit"
    
    # Push the changes to GitHub
    git push origin master

    Make sure to replace <repository_url> with the URL of your GitHub repository and <repository_name> with the name of your repository.

  8. Verify Your Project: After uploading your project files, go back to your repository on GitHub and ensure that all your files are present and correctly uploaded.

Congratulations! You've now created a repository on GitHub and uploaded your project to it. Others can now access and collaborate on your project, depending on your chosen repository visibility (public or private) and access settings.

About

Collaborative web development with Git - An example scenario showcasing version control, feature branches, and CI/CD workflows for building a web application using front-end (HTML, CSS, JS) and back-end technologies.