SlideShare a Scribd company logo
1 of 45
Git & GitHub
Workshop
Presented by-
GDSC Alliance University
and
GDSC UniKL
Agenda
1. Introduction by AU
2. Introduction by UniKL
3. Speech by Dr. Ratnakar Achary
4. What is Git(Alya)
5. Github account and CLI (Dewan & Saksham)
6. Creating a repo & cloning (Dhanush Suresh)
7. Changes in file, commit & push(Keerthana J)
------------------10 min break-------------
1. Branching (Pratham)
2. Forking and Pull Request(Dewan)
3. Vote of thanks(Sinchana)
------------------5 min break-------------
1. Quiz
1:00-1:05 pm
1:05-1:10 pm
1:10-1:20 pm
1:20-1:25 pm
1:25-1:40 pm
1:40-1:55 pm
1:55-2:10 pm
2:10-2:20 pm
2:20-2:40 pm
2:40-3:10 pm
3:10-3:15 pm
3:15-3:20 pm
3:20-3:30 pm
Alliance
University
Bengaluru, Karnataka, India
Our team
Our team
Dr. P. Mano Paul
Associate Professor
Universiti
Kuala
Lumpur
Kuala Lumpur, Malaysia
Core Team
Past Activities
Chapter’s Bevy Page
Speech by
Dr. Ratnakar
Achary
03
What is Git?
04
Git is a distributed version control system that tracks
changes in any set of computer files.
By- Alya
What is Git?
Git is a DevOps tool used for large source code management.
It is a free and open-source version control system used to
handle small to very projects efficiently. Git is used to tracking
changes in the source code, enabling multiple developers to
work together on non-linear development.
Git Features
● Tracks history
● Free and open source
● Supports non-linear development
● Creates backups
● Scalable
● Supports collaboration
● Branching is easier
● Distributed development
What is GitHub?
05
GitHub, Inc. is a platform and cloud-based service for
software development and version control using Git.
By- Dewan
Shakil
Github Account creation
● First go to github.com
● Click on Sign Up
● Now Enter your Email
● Create a strong password
● Do Verification and revisit the github’s official website
● Now click on sign in and sign in by the same email and password
What is Git CLI?
Git CLI (Command Line Interface) is a powerful tool for version
control:
● It allows users to manage and track changes in their
code or any set of files efficiently.
● With the Git CLI, users can perform various operations
such as creating repositories, staging changes,
committing modifications, branching, merging, and
interacting with remote repositories hosted on platforms
like GitHub, GitLab, or Bitbucket, all through text-based
commands in a terminal or command prompt.
By- Saksham Sharma
Installing Git CLI
In Mac OS, the terminal itself
can do everything and git is
pre-installed in mac. You can
also Install third party terminals
such as Hyper.is which will work
in every OS.
When you Install git it came
with a terminal called gitbash.
You can use any terminal that
you have on your computer
such as Command Prompt,
Powershell
Git Bash
(Windows)
Terminal
(Mac and Linux)
Basic Commands
for Git CLI
git config --global user.name "user_name”
The "git config --global user.name 'user_name'" command sets the global
username for Git, associating the provided 'user_name' with your commits
across all repositories.
git config --global user.email email
The "git config --global user.email email" command sets the global email
for Git, linking the specified 'email' with your commits across all repositories..
Basic command
for git CLI
git config --global init.default branch main
The "git config --global init.default branch main" command sets the default
branch name to 'main' when initializing new repositories globally in Git.
git config -h / git –-help
The git config -h command displays a brief summary of the git config
command and its usage options. It provides a quick reference for the config
command's basic functionality and how to use it.
Creating
a Repo &
Cloning
06
By- Dhanush Suresh
What is a Repository?
A repository, or repo, is a centralized
digital storage that developers use to
make and manage changes to an
application’s source code.
Developers have to store and share
folders, text files, and other types of
documents when developing
software. A repo has features that
allow developers to easily track code
changes, simultaneously edit files,
and efficiently collaborate on the
same project from any location.
Creating a Repository
STEP 1 STEP 2
Cloning a repo
Once The repository is created,you will get a
rectangle,once you create your repository
And then go to your terminal and type
git clone <the copied link>
Changes in file,
commit & push
-Keerthana J
07
Stages of a File
Let’s Commit
Step 1: Add a file to the staging
environment
git add <file>
Step 2: Create a commit
git commit -m "Your message about the
commit"
Pushhhhh!
git push is most commonly used to publish an upload local changes to a central repository.
git push origin main
Too much to handle?
Let’s chill for 10 mins
Branching
● Branching in Git, including GitHub, is a
powerful feature that allows developers
to work on different aspects of a project.
● Simultaneously, experiment with new
features, and maintain a clean and
organized version history.
08
Creating a Branch:
1. Local Branch
● To create a new branch locally, use the
following command in your Git repository:
Code: git checkout -b new_branch_name
1. Remote Branch (GitHub):
● After creating a local branch, you can push it to
GitHub to make it available remotely:
Code: git push origin new_branch_name
Main
Switching Between
Branches:
● Switching Between Local Branch
git checkout branch_name
● Switching Between Remote Branch
git checkout -b local_branch_name
origin/remote_branch_name
Merging Branches:
1. Local Merge:
● After making changes in a branch, you can merge
it into another branch using:
Code: git checkout destination_branch
git merge source_branch
1. Pull Request on GitHub:
● You create a PR to propose changes and discuss
them before merging. You can initiate a PR
directly on the GitHub website.
Deleting Branches:
● To delete a local branch after merging:
Code: git branch -d branch_name
● To delete a remote branch:
Code: git push origin --delete branch_name
Branching Best
Practices:
❖ Feature Branches
❖ Pull Often
❖ Descriptive Branch Names
❖ Commit Frequently
❖ Code Reviews
❖ Keep Branches Short-Lived
Forking
And
Pull Request
09
Forking
A fork in Git is simply a copy of an
existing repository in which the new
owner disconnects the codebase from
previous committers
What is Forking?
Forks are often used to iterate on ideas
or changes before they are proposed
back to the upstream repository, such
as in open source projects or when a
user does not have write access to the
upstream repository. Or if they make
changes to the project in a major way
and want to have a different code base
When to use forking?
Pull Request
What is a PR?
A pull request on GitHub is like asking
your friend if they like the changes you
made to a shared project before adding
them. It helps keep everyone's work
coordinated and in good shape.
Not Understood?
Let’s be practical !!
Go to the repo
Fork it!
Clone the
fork and edit
Push and
create a PR
01 03
02 04
What we will do?
github.com/imdewan
github.com/imdewan
Let’s recap and see how you can
use these in the industry !!
Get the project
Pre work
Start the work
Push and PR
01 03
02 04
1) Initiate the
project
2) Evaluate
3) Communicate
your estimates
4) Start the
project
1) Create branch
2) Clone
3) Communicate
1) Find resources
2) Work
3) Communicate
1) Create PR
2) Resolve issues
3) Ask for
feedback
Congratulate yourself!!
Review your past work
Check Your Health
Post-Work
Any questions?
Thanks for joining
UniKL!
Quiz Time!
CREDITS: This presentation template was
created by Slidesgo, and includes icons by
Flaticon, and infographics & images by Freepik
Thanks!
Socials-
LINKTR.EE/GDSC_AU
Please keep this slide for attribution
Do you have any questions?
gdsc.alliance@gmail.com

More Related Content

Similar to GitHub Event.pptx

Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configurationKishor Kumar
 
Introduction to git and Github
Introduction to git and GithubIntroduction to git and Github
Introduction to git and GithubWycliff1
 
Git for folk who like GUIs
Git for folk who like GUIsGit for folk who like GUIs
Git for folk who like GUIsTim Osborn
 
You can git
You can gitYou can git
You can gitYu GUAN
 
Git interview questions | Edureka
Git interview questions | EdurekaGit interview questions | Edureka
Git interview questions | EdurekaEdureka!
 
Rc094 010d-git 2 - desconocido
Rc094 010d-git 2 - desconocidoRc094 010d-git 2 - desconocido
Rc094 010d-git 2 - desconocidoLuis Bertel
 
Git Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfGit Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfuzair
 
Git 101 Workshop
Git 101 WorkshopGit 101 Workshop
Git 101 WorkshopJoy Seng
 
Let's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHubLet's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHubKim Moir
 
The Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHubThe Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHubBigBlueHat
 
Git for developers
Git for developersGit for developers
Git for developersHacen Dadda
 

Similar to GitHub Event.pptx (20)

setting up a repository using GIT
setting up a repository using GITsetting up a repository using GIT
setting up a repository using GIT
 
Git 101
Git 101Git 101
Git 101
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configuration
 
Introduction to git and Github
Introduction to git and GithubIntroduction to git and Github
Introduction to git and Github
 
Git for folk who like GUIs
Git for folk who like GUIsGit for folk who like GUIs
Git for folk who like GUIs
 
You can git
You can gitYou can git
You can git
 
Git interview questions | Edureka
Git interview questions | EdurekaGit interview questions | Edureka
Git interview questions | Edureka
 
Git basics
Git basicsGit basics
Git basics
 
Rc094 010d-git 2 - desconocido
Rc094 010d-git 2 - desconocidoRc094 010d-git 2 - desconocido
Rc094 010d-git 2 - desconocido
 
Git Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfGit Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdf
 
Git 101 Workshop
Git 101 WorkshopGit 101 Workshop
Git 101 Workshop
 
Let's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHubLet's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHub
 
Git
GitGit
Git
 
database.pptx
database.pptxdatabase.pptx
database.pptx
 
The Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHubThe Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHub
 
Git
GitGit
Git
 
Advance workshop on git
Advance workshop on gitAdvance workshop on git
Advance workshop on git
 
Git for developers
Git for developersGit for developers
Git for developers
 
Git presentation
Git presentationGit presentation
Git presentation
 
Git and github
Git and githubGit and github
Git and github
 

Recently uploaded

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaWSO2
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfdanishmna97
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMKumar Satyam
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseWSO2
 

Recently uploaded (20)

Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 

GitHub Event.pptx

  • 1. Git & GitHub Workshop Presented by- GDSC Alliance University and GDSC UniKL
  • 2. Agenda 1. Introduction by AU 2. Introduction by UniKL 3. Speech by Dr. Ratnakar Achary 4. What is Git(Alya) 5. Github account and CLI (Dewan & Saksham) 6. Creating a repo & cloning (Dhanush Suresh) 7. Changes in file, commit & push(Keerthana J) ------------------10 min break------------- 1. Branching (Pratham) 2. Forking and Pull Request(Dewan) 3. Vote of thanks(Sinchana) ------------------5 min break------------- 1. Quiz 1:00-1:05 pm 1:05-1:10 pm 1:10-1:20 pm 1:20-1:25 pm 1:25-1:40 pm 1:40-1:55 pm 1:55-2:10 pm 2:10-2:20 pm 2:20-2:40 pm 2:40-3:10 pm 3:10-3:15 pm 3:15-3:20 pm 3:20-3:30 pm
  • 5. Our team Dr. P. Mano Paul Associate Professor
  • 11. What is Git? 04 Git is a distributed version control system that tracks changes in any set of computer files. By- Alya
  • 12. What is Git? Git is a DevOps tool used for large source code management. It is a free and open-source version control system used to handle small to very projects efficiently. Git is used to tracking changes in the source code, enabling multiple developers to work together on non-linear development.
  • 13. Git Features ● Tracks history ● Free and open source ● Supports non-linear development ● Creates backups ● Scalable ● Supports collaboration ● Branching is easier ● Distributed development
  • 14. What is GitHub? 05 GitHub, Inc. is a platform and cloud-based service for software development and version control using Git. By- Dewan Shakil
  • 15. Github Account creation ● First go to github.com ● Click on Sign Up ● Now Enter your Email ● Create a strong password ● Do Verification and revisit the github’s official website ● Now click on sign in and sign in by the same email and password
  • 16. What is Git CLI? Git CLI (Command Line Interface) is a powerful tool for version control: ● It allows users to manage and track changes in their code or any set of files efficiently. ● With the Git CLI, users can perform various operations such as creating repositories, staging changes, committing modifications, branching, merging, and interacting with remote repositories hosted on platforms like GitHub, GitLab, or Bitbucket, all through text-based commands in a terminal or command prompt. By- Saksham Sharma
  • 17. Installing Git CLI In Mac OS, the terminal itself can do everything and git is pre-installed in mac. You can also Install third party terminals such as Hyper.is which will work in every OS. When you Install git it came with a terminal called gitbash. You can use any terminal that you have on your computer such as Command Prompt, Powershell Git Bash (Windows) Terminal (Mac and Linux)
  • 18. Basic Commands for Git CLI git config --global user.name "user_name” The "git config --global user.name 'user_name'" command sets the global username for Git, associating the provided 'user_name' with your commits across all repositories. git config --global user.email email The "git config --global user.email email" command sets the global email for Git, linking the specified 'email' with your commits across all repositories..
  • 19. Basic command for git CLI git config --global init.default branch main The "git config --global init.default branch main" command sets the default branch name to 'main' when initializing new repositories globally in Git. git config -h / git –-help The git config -h command displays a brief summary of the git config command and its usage options. It provides a quick reference for the config command's basic functionality and how to use it.
  • 21. What is a Repository? A repository, or repo, is a centralized digital storage that developers use to make and manage changes to an application’s source code. Developers have to store and share folders, text files, and other types of documents when developing software. A repo has features that allow developers to easily track code changes, simultaneously edit files, and efficiently collaborate on the same project from any location.
  • 23. Cloning a repo Once The repository is created,you will get a rectangle,once you create your repository And then go to your terminal and type git clone <the copied link>
  • 24. Changes in file, commit & push -Keerthana J 07
  • 25. Stages of a File
  • 26. Let’s Commit Step 1: Add a file to the staging environment git add <file> Step 2: Create a commit git commit -m "Your message about the commit"
  • 27. Pushhhhh! git push is most commonly used to publish an upload local changes to a central repository. git push origin main
  • 28. Too much to handle? Let’s chill for 10 mins
  • 29. Branching ● Branching in Git, including GitHub, is a powerful feature that allows developers to work on different aspects of a project. ● Simultaneously, experiment with new features, and maintain a clean and organized version history. 08
  • 30. Creating a Branch: 1. Local Branch ● To create a new branch locally, use the following command in your Git repository: Code: git checkout -b new_branch_name 1. Remote Branch (GitHub): ● After creating a local branch, you can push it to GitHub to make it available remotely: Code: git push origin new_branch_name Main
  • 31. Switching Between Branches: ● Switching Between Local Branch git checkout branch_name ● Switching Between Remote Branch git checkout -b local_branch_name origin/remote_branch_name
  • 32. Merging Branches: 1. Local Merge: ● After making changes in a branch, you can merge it into another branch using: Code: git checkout destination_branch git merge source_branch 1. Pull Request on GitHub: ● You create a PR to propose changes and discuss them before merging. You can initiate a PR directly on the GitHub website.
  • 33. Deleting Branches: ● To delete a local branch after merging: Code: git branch -d branch_name ● To delete a remote branch: Code: git push origin --delete branch_name
  • 34. Branching Best Practices: ❖ Feature Branches ❖ Pull Often ❖ Descriptive Branch Names ❖ Commit Frequently ❖ Code Reviews ❖ Keep Branches Short-Lived
  • 36. Forking A fork in Git is simply a copy of an existing repository in which the new owner disconnects the codebase from previous committers What is Forking? Forks are often used to iterate on ideas or changes before they are proposed back to the upstream repository, such as in open source projects or when a user does not have write access to the upstream repository. Or if they make changes to the project in a major way and want to have a different code base When to use forking?
  • 37. Pull Request What is a PR? A pull request on GitHub is like asking your friend if they like the changes you made to a shared project before adding them. It helps keep everyone's work coordinated and in good shape. Not Understood?
  • 38. Let’s be practical !! Go to the repo Fork it! Clone the fork and edit Push and create a PR 01 03 02 04 What we will do? github.com/imdewan
  • 40. Let’s recap and see how you can use these in the industry !! Get the project Pre work Start the work Push and PR 01 03 02 04 1) Initiate the project 2) Evaluate 3) Communicate your estimates 4) Start the project 1) Create branch 2) Clone 3) Communicate 1) Find resources 2) Work 3) Communicate 1) Create PR 2) Resolve issues 3) Ask for feedback
  • 41. Congratulate yourself!! Review your past work Check Your Health Post-Work
  • 45. CREDITS: This presentation template was created by Slidesgo, and includes icons by Flaticon, and infographics & images by Freepik Thanks! Socials- LINKTR.EE/GDSC_AU Please keep this slide for attribution Do you have any questions? gdsc.alliance@gmail.com