CS NOTES
0 Likes
89 Views
9 Pages
Free
0 Ratings
Below is a preview of the PDF. To download the full document, please click the download button.
Git is a version control system used by developers to track changes in code. GitHub is a platform that hosts Git repositories online, making it easier to share code and collaborate with others.
Whether you are a student, a developer, or someone learning programming, understanding Git and GitHub is essential. In this guide, we’ll explain the key concepts and commands in simple terms.
A repository is where your project files and history are stored. Every project you create or contribute to will have a repository.
my-first-project.git clone https://github.com/username/repo-name.git
A commit is like a snapshot of your project at a particular point in time. It helps you track changes.
git add filename
git commit -m "Added a new feature"
Branches allow you to work on different features without affecting the main project.
git branch feature-branch
git checkout feature-branch
Merging brings changes from one branch into another. For example, when a feature is ready, you merge it into the main branch.
git checkout main
git merge feature-branch
Tip: If there are conflicts, Git will ask you to resolve them manually before completing the merge.
To synchronize your local repo with GitHub:
git pull origin main
git push origin main
Git GitHub Git commands Git merge Git branch Git repository version control pull request
To leave a comment, please log in.
Log in to CommentDBMS Handwritten Notes - Basics Made Easy
Data Structure and Algorithm Notes
Handwritten Notes on the Indian Constitution in Hindi (PDF)
SPI Protocol Complete Interview Guide PDF
Master Recursion and Backtracking in DSA - Complete Notes & Concepts Explained
Handwritten Linux Notes PDF | Simplified Linux Commands & Concepts for Beginners
Kubernetes for Beginners | Handwritten Notes & Easy Tutorials
3-Axis CNC Router Machine Project - Complete Guide
Ancient Indian History: Chronological Study from Indus Valley to Gupta Empire
UP Lekhpal Previous Year Question Paper 2022 - PDF Download & Analysis
SSC GD Solved Paper 2023 (Held on 01 February 2023 - Shift 2)
AKTU Odd Semester Exam Schedule 2025-26 (Final)
Comprehensive Reasoning Handwritten Notes PDF - SSC, RRB, Banking, Police, SI & Homeguard
DBMS Handwritten Notes - Basics Made Easy
Data Structure and Algorithm Notes
Master Recursion and Backtracking in DSA - Complete Notes & Concepts Explained
Handwritten Linux Notes PDF | Simplified Linux Commands & Concepts for Beginners
Kubernetes for Beginners | Handwritten Notes & Easy Tutorials
Angular Handwritten Notes: A Complete Guide for Beginners
C Programming Handwritten Notes: A Complete Guide
CSS Handwritten Notes: A Complete Guide for Beginners and Developers
Java Handwritten Notes PDF Download | Complete Core & Advanced Java Notes
JavaScript Handwritten Notes PDF Download | Learn JS Basics to Advanced Concepts
HTML Handwritten Notes PDF Download | Complete HTML Notes for Beginners
PHP Handwritten Notes PDF Download | Complete PHP Notes for Beginners
Docker Handwritten Notes PDF Download | Complete Docker Notes for Beginners
FastAPI Handwritten Notes PDF Download | Complete FastAPI Notes for Beginners
Next.js Handwritten Notes PDF Download | Complete Next.js Notes for Beginners
Operating System Handwritten Notes PDF Download | Complete OS Notes for Students
SQL Handwritten Notes PDF Download | Complete SQL Notes for Beginners
Machine Learning Handwritten Notes PDF (Free Download)