Coder Social home page Coder Social logo

plpbasicgitassignment's Introduction

Assignment Documentation: Basic Git and GitHub Workflow

Objective

The objective of this assignment was to familiarize with the basic workflow of creating a GitHub repository, connecting it to a local folder, and making commits and pushes.

Requirements

  • A GitHub account
  • Git installed on the local machine
  • A code editor (e.g., Visual Studio Code, Sublime Text)

Task 1: Repository Setup

  1. GitHub Repository Creation:
    • Logged in to GitHub account.
    • Created a new repository named "PLPBasicGitAssignment".
    • Initialized the repository with a README file.

Task 2: Local Setup

  1. Local Folder Setup:

    • Created a new folder named "PLPBasicGitAssignment" on the local machine.
  2. Git Initialization:

    • Opened a terminal.
    • Navigated to the "PLPBasicGitAssignment" folder.
    • Initialized a new Git repository using the command git init.
  3. Connecting to GitHub:

    • Linked the local repository to the GitHub repository using the command:
      git remote add origin <repository-url>
      

Task 3: Making Changes

  1. Create a File:

    • Created a new text file named hello.txt inside the "PLPBasicGitAssignment" folder.
    • Added a simple text message "Hello, Git!" to the hello.txt file.
  2. Committing Changes:

    • Staged the changes using the command:
      git add hello.txt
      
    • Committed the changes with the message "Add hello.txt with a greeting" using the command:
      git commit -m "Add hello.txt with a greeting"
      

Task 4: Pushing to GitHub

  1. Pushing to GitHub:
    • Pushed the committed changes to the GitHub repository using the command:
      git push -u origin main
      

Task 5: Verification

  1. Verify on GitHub:
    • Visited the GitHub repository in a web browser.
    • Confirmed that the hello.txt file and commit message are visible.

Additional Notes

  • This is my documentetion of all steps and commands used in this assignment for future reference.

plpbasicgitassignment's People

Contributors

brianmurutu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.