SlideShare a Scribd company logo
1 of 21
Download to read offline
Getting Started With
GIT
BY GHADI AL GHOSH
LINKEDIN.COM/IN/GHADIALGHOSH/
GITHUB.COM/GHADIALGHOSH
Introduction
Many Beginners still think Git is a trouble!!!!
This slide is to introduce you to GIT and how it’s beneficial in managing our
project.
GIT originally developed in 2005 by Linus Torvalds, the famous creator of the
Linux operating system kernel.
What you will learn
What is Git
 Basic Git Terminology & Common GIT Operations
Git vs GitHub
Create Your First Git Local Repository & push it to GitHub
http://jlord.us/git-it/challenges/remote_control.html
What is Git?
One of the primary things that Git does and also the primary reason it exists is to
keep track of the entire history of things that you are working on.
Simply, Git is like a person👤 who observes your code & remember what you &
your teammate changed, when you changed it & why you changed it.
He (Git) simply keep track of changes!
Basic Git Terminology - 1
Repository
Now imagine this person keep these changes for each project in different
folders📁.
This Folder is called a repository
Commit, Every Time you change something in your project you can tell
(commit) that person (Git) to remember it with unique ID, so he can tell you
about that change in the future if you need.
Basic Git Terminology - 2
Branch
For convenience, he keeps these records in a different cabinet, called branch. In
the beginning, there is only one slot called master branch you can tell him to add
more!
Git Operations
Init-> To initialize a local directory as Git repository
Push -> To upload changes to your repository
Pull -> To download any version of a file from a repository
Clone -> To clone a remote Git repository (GitHub) to a local machine
Git vs GitHub
What is GitHub
GitHub is a platform (an online service) that provides hosting for your projects, it
is called a remote repository because it's on a remote server.
GitHub is also called a remote repository
Git is local (tool) but GitHub is online service
https://www.benfrederickson.com/ranking-programming-languages-by-github-users/
GitHub Ranking
As of January 2020, GitHub reports having over 40 million users and more than
100 million repositories (including at least 28 million public repositories), making
it the largest host of source code in the world.
GitHub is not the only option! other choices include Git Lab and
Bitbucket.
Create your First Git local repository - 1
Create a sample folder 📁named ‘Demo’ and place some sample code files in it.
Create a GitHub Account
If you don't have one you can open an account it is available freely over the
internet 👉 https://github.com/
Create your First Git local repository - 2
Make sure you have Git installed on your machine
You can install Git for Windows which provides a BASH emulation used to run Git
from the command line. Personally, I like running Git from the command line, but
it also provides the Git GUI, a powerful alternative to Git BASH.
https://gitforwindows.org/
Create your First Git local repository - 3
Tell Git who you are
$ git config --global user.name "YOUR_USERNAME"
$ git config --global user.email "YOUREMAIL@domain.com"
$ git config --global --list # To check the info you just provided
Create your First Git local repository - 4
Let’s Git
Create a new repository on GitHub.
Follow the below link:
https://github.com/new.
Now, locate to the folder you want to place under git in your PC.
$ cd Desktop/Demo
Create your First Git local repository - 5
Initialize Git:
$ touch README.md # To create a README file
$ git init # Initiates an empty git repository
now you have successfully created a Git local repository
Add files for commit
Add the files to the Git repository for commit:
$ git add . # Adds all the files in the local repository and stages them for commit
Commit files you added to your Git repo:
$ git commit -m "First commit"# The message in the " " is given so that the other
users can read the message and see what changes you made
Add a remote origin and Push - 1
Now each time you make changes in your files and save it, it won’t be
automatically updated on GitHub. All the changes we made in the file are
updated in the local repository. Now to update the changes to the master:
$ git remote add origin remote_repository_URL# sets the new remote
The git remote command lets you create, view, and delete connections to other
repositories.
Add a remote origin and Push - 2
$ git push -u origin master # pushes changes to origin
Now the git push command pushes the changes in your local repository up to
the remote repository you specified as the origin.
And that’s it. You’ve just added the files to the repository you just created on
GitHub.
Q&A
For Any inquires feel free to send me an email at
ghadialghosh[@]outlook.com
Thank You 

More Related Content

What's hot

What's hot (20)

Open source
Open sourceOpen source
Open source
 
Beginner's guide to git and github
Beginner's guide to git and github Beginner's guide to git and github
Beginner's guide to git and github
 
Github
GithubGithub
Github
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Hacktoberfest slides
Hacktoberfest slidesHacktoberfest slides
Hacktoberfest slides
 
Git kelvin
Git   kelvinGit   kelvin
Git kelvin
 
Inside GitHub
Inside GitHubInside GitHub
Inside GitHub
 
Introduction to git and Github
Introduction to git and GithubIntroduction to git and Github
Introduction to git and Github
 
How to install and use git
How to install and  use gitHow to install and  use git
How to install and use git
 
Smile Gupta - Hacktoberfest Celebration 2020
Smile Gupta - Hacktoberfest Celebration 2020Smile Gupta - Hacktoberfest Celebration 2020
Smile Gupta - Hacktoberfest Celebration 2020
 
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal GargGitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
 
Git & git hub
Git & git hubGit & git hub
Git & git hub
 
Intro to Git & GitHub
Intro to Git & GitHubIntro to Git & GitHub
Intro to Git & GitHub
 
Git basics
Git basicsGit basics
Git basics
 
Git hub
Git hubGit hub
Git hub
 
GitHub Introduction
GitHub IntroductionGitHub Introduction
GitHub Introduction
 
Git, GitHub and Open Source
Git, GitHub and Open SourceGit, GitHub and Open Source
Git, GitHub and Open Source
 
Git & Github
Git & GithubGit & Github
Git & Github
 
Git hub visualstudiocode
Git hub visualstudiocodeGit hub visualstudiocode
Git hub visualstudiocode
 
Contributing to open source using Git
Contributing to open source using GitContributing to open source using Git
Contributing to open source using Git
 

Similar to Getting started With GIT

Beginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdfBeginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdfGDSCKNUST
 
Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticlePRIYATHAMDARISI
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and githubAderemi Dadepo
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfBruceLee275640
 
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
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git聖文 鄭
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfbadrfathallah2
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfAmarnadh36
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hubNaveen Pandey
 
Git and Github.pptx
Git and Github.pptxGit and Github.pptx
Git and Github.pptxaymanessam16
 
Git and Github.pptx
Git and Github.pptxGit and Github.pptx
Git and Github.pptxHitesh670643
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hubJasleenSondhi
 
Git, github and the hacktober fest
Git, github and the hacktober festGit, github and the hacktober fest
Git, github and the hacktober festUtkarshRaj83
 

Similar to Getting started With GIT (20)

Beginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdfBeginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdf
 
Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech Article
 
16 Git
16 Git16 Git
16 Git
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdf
 
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
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
 
setting up a repository using GIT
setting up a repository using GITsetting up a repository using GIT
setting up a repository using GIT
 
Git and Github.pptx
Git and Github.pptxGit and Github.pptx
Git and Github.pptx
 
Git and Github.pptx
Git and Github.pptxGit and Github.pptx
Git and Github.pptx
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with git
 
GIT By Sivakrishna
GIT By SivakrishnaGIT By Sivakrishna
GIT By Sivakrishna
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
Intro to Git and GitHub
Intro to Git and GitHubIntro to Git and GitHub
Intro to Git and GitHub
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 
Git, github and the hacktober fest
Git, github and the hacktober festGit, github and the hacktober fest
Git, github and the hacktober fest
 
GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
 

Recently uploaded

The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 

Recently uploaded (20)

The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 

Getting started With GIT

  • 1. Getting Started With GIT BY GHADI AL GHOSH LINKEDIN.COM/IN/GHADIALGHOSH/ GITHUB.COM/GHADIALGHOSH
  • 2. Introduction Many Beginners still think Git is a trouble!!!! This slide is to introduce you to GIT and how it’s beneficial in managing our project. GIT originally developed in 2005 by Linus Torvalds, the famous creator of the Linux operating system kernel.
  • 3. What you will learn What is Git  Basic Git Terminology & Common GIT Operations Git vs GitHub Create Your First Git Local Repository & push it to GitHub
  • 5. What is Git? One of the primary things that Git does and also the primary reason it exists is to keep track of the entire history of things that you are working on. Simply, Git is like a person👤 who observes your code & remember what you & your teammate changed, when you changed it & why you changed it. He (Git) simply keep track of changes!
  • 6. Basic Git Terminology - 1 Repository Now imagine this person keep these changes for each project in different folders📁. This Folder is called a repository Commit, Every Time you change something in your project you can tell (commit) that person (Git) to remember it with unique ID, so he can tell you about that change in the future if you need.
  • 7. Basic Git Terminology - 2 Branch For convenience, he keeps these records in a different cabinet, called branch. In the beginning, there is only one slot called master branch you can tell him to add more!
  • 8. Git Operations Init-> To initialize a local directory as Git repository Push -> To upload changes to your repository Pull -> To download any version of a file from a repository Clone -> To clone a remote Git repository (GitHub) to a local machine
  • 10. What is GitHub GitHub is a platform (an online service) that provides hosting for your projects, it is called a remote repository because it's on a remote server. GitHub is also called a remote repository Git is local (tool) but GitHub is online service
  • 12. GitHub Ranking As of January 2020, GitHub reports having over 40 million users and more than 100 million repositories (including at least 28 million public repositories), making it the largest host of source code in the world. GitHub is not the only option! other choices include Git Lab and Bitbucket.
  • 13. Create your First Git local repository - 1 Create a sample folder 📁named ‘Demo’ and place some sample code files in it. Create a GitHub Account If you don't have one you can open an account it is available freely over the internet 👉 https://github.com/
  • 14. Create your First Git local repository - 2 Make sure you have Git installed on your machine You can install Git for Windows which provides a BASH emulation used to run Git from the command line. Personally, I like running Git from the command line, but it also provides the Git GUI, a powerful alternative to Git BASH. https://gitforwindows.org/
  • 15. Create your First Git local repository - 3 Tell Git who you are $ git config --global user.name "YOUR_USERNAME" $ git config --global user.email "YOUREMAIL@domain.com" $ git config --global --list # To check the info you just provided
  • 16. Create your First Git local repository - 4 Let’s Git Create a new repository on GitHub. Follow the below link: https://github.com/new. Now, locate to the folder you want to place under git in your PC. $ cd Desktop/Demo
  • 17. Create your First Git local repository - 5 Initialize Git: $ touch README.md # To create a README file $ git init # Initiates an empty git repository now you have successfully created a Git local repository
  • 18. Add files for commit Add the files to the Git repository for commit: $ git add . # Adds all the files in the local repository and stages them for commit Commit files you added to your Git repo: $ git commit -m "First commit"# The message in the " " is given so that the other users can read the message and see what changes you made
  • 19. Add a remote origin and Push - 1 Now each time you make changes in your files and save it, it won’t be automatically updated on GitHub. All the changes we made in the file are updated in the local repository. Now to update the changes to the master: $ git remote add origin remote_repository_URL# sets the new remote The git remote command lets you create, view, and delete connections to other repositories.
  • 20. Add a remote origin and Push - 2 $ git push -u origin master # pushes changes to origin Now the git push command pushes the changes in your local repository up to the remote repository you specified as the origin. And that’s it. You’ve just added the files to the repository you just created on GitHub.
  • 21. Q&A For Any inquires feel free to send me an email at ghadialghosh[@]outlook.com Thank You 