Git Presentation IITG
Git Presentation IITG
Yarish Kumar J
BS( Data Science and Artificial Intelligence ) – Cohort 2 – Trimester 1
@ Indian Institute of Technology Guwahati
Types of VCS:
▪ Local VCS – ex. RCS
▪ Centralized VCS (CVCS) – ex. CVS, SVN,Perforce
▪ Distributed VCS (DVCS) – ex. Git, Mercurial
SVN .VS. GIT
INSTALLATION
▪ https://git-scm.com/downloads
▪ https://github.com/settings/tokens
PUSH TO REMOTE REPO
▪ echo "# merge-example" >> README.md
▪ git init
▪ git add README.md
▪ git commit -m "first commit"
▪ git branch -M main
▪ git remote add origin https://github.com/yarishiitg/merge-example.git
▪ git push -u origin main
AUDIT OTHER’S REPOSITORY
▪ https://github.com/yarishiitg/CalculatorQt
FORK
▪ https://github.com/yarish/CalculatorQt
GIT PULL REQUEST ( PR )
▪ Definition:
A pull request (PR) is a way to propose changes to a repository, enabling
collaboration and review before merging.
▪ Key Features of Pull Requests:
• Enables code review and feedback.
• Tracks changes, comments, and approvals.
• Facilitates merging feature branches into the main branch.
▪ Why Use Pull Requests?
• Improve code quality through peer reviews.
• Maintain a clean and controlled development workflow.
• Enable collaboration on team projects or open-source contributions.
GIT PULL REQUEST ( PR )
▪ $ git checkout -b feature/my-feature
▪ $ echo "New feature" > feature.txt
$ git add feature.txt
$ git commit -m "Add new feature”
▪ git push origin feature/my-feature
▪ Open a Pull Request on GitHub:
• Navigate to Pull Requests → New Pull Request.
• Select source branch (feature/my-feature) and target branch (main).
• Add a title, description, and reviewers.
GITHUB STUDENT BENEFITS
▪ https://education.github.com/pack
GITHUB PAGES
GITHUB COPILOT – AI PAIR PROGRAMMER
OH-MY-ZSH – CUSTOMIZE YOUR TERMINAL
https://ohmyz.sh/
MARKDOWN SYNTAX
▪ Cheat sheet https://github.com/lifeparticle/Markdown-
Cheatsheet?utm_source=chatgpt.com
NEW INITIATIVE : MINI PROJECT & DEMO
Missed opportunity!
▪ C Programming
▪ Excel Data Analysis with Statistics
THANK YOU!
Yarish Kumar J
BS( Data Science and Artificial Intelligence ) – Cohort 2 – 2024
@ Indian Institute of Technology Guwahati