Coder Social home page Coder Social logo

git-and-github-manual's Introduction

Git-and-Github-Manual

Welcome to the Git-and-Github-Manual! This is a sample website project created to demonstrate the use of Git and GitHub.

Git and GitHub User Manual

Git

Git is a version control system that allows you to keep track of changes made to your project over time.

Why is Git Important?

  • Git allows for version control, which means developers can keep track of changes made to the code and easily revert to earlier versions if necessary.
  • Git enables collaboration by allowing multiple developers to work on the same codebase simultaneously.
  • Git reduces the risk of code conflicts by providing a clear history of changes made to the code.

Why is GitHub Important?

  • GitHub is a web-based hosting service that provides a platform for software development teams to store and manage their Git repositories.
  • GitHub allows for easy collaboration among team members by providing tools for code review and feedback.
  • GitHub provides a centralized location for code, making it easy for team members to access and work on the same codebase.

How to Use Git and GitHub

  1. Clone the repository to your local machine using the following command in your terminal:
    git clone https://github.com/dyells07/hotel-website.git
  2. Once you have made changes to the code, add the files to the staging area using the following command:
    git add <filename>
  3. Commit the changes with a meaningful commit message using the following command:
    git commit -m "Your commit message here"
  4. Push the changes to the remote repository using the following command:
    git push origin <branch name>
  5. If you want to merge changes from another branch into your current branch, use the following command:
    git merge <branch name>
  6. If you want to view the commit history, use the following command:
    git log
  7. If you want to revert to a previous commit, use the following command:
    git revert <commit hash>
  8. If you want to switch to a different branch, use the following command:
    git checkout <branch name>
  9. If you want to create a new branch and switch to it, use the following command:
    git checkout -b <new branch name>
  10. If you want to delete a branch, use the following command:
    git branch -d <branch name>

GitHub

GitHub is a web-based hosting service for version control using Git. It allows you to share your code with others and collaborate on projects. Here are some basic GitHub commands that you can use:

  • git remote add origin <repository URL>: Sets the remote repository for your local Git repository
  • git push -u origin <branch name>: Pushes changes to the remote repository
  • git pull: Pulls changes from the remote repository
  • git clone <repository URL>: Clones a remote repository to your local machine
  • git branch: Displays a list of branches in the repository

These are just a few of the basic Git and GitHub commands. For more information, please refer to the official Git and GitHub documentation.

git-and-github-manual's People

Contributors

dyells07 avatar bibekacharya101 avatar

Stargazers

Nabin Pandey avatar  avatar  avatar  avatar Insoft Dev avatar Sijan Thapa Magar avatar Bipin Khanal avatar Sulab Bataju avatar Ruskin BK avatar Jagat Acharya avatar Roshan Paudel avatar Sulav Subedi avatar  avatar  avatar Aasish Ghising avatar  avatar Ankit Pangeni avatar Ganesh subedi avatar Sushant Regmi 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.