SlideShare a Scribd company logo
1 of 25
How to install and use git
Download GIT
https://git-scm.com/download/win
Download installation file from the
above link
Installing GIT
Installing GIT
Installing GIT
Installing GIT
Installing GIT
Register to github.com
• Open an account in https://github.com/
Generating ssh key
• Open GIT bash terminal .
• Go to root directory by typing
cd~
• Type ssh-keygen.exe –t rsa –C
“mygit@gmail.com“ (email that
you have used when you register
to github.com )
• Press “Enter” whenever they ask
for passphrase
Generating ssh key
• Open GIT bash terminal .
• Go to root directory by typing
cd~
• Type ssh-keygen.exe –t rsa –C
“mygit@gmail.com“ (email that
you have used when you register
to github.com )
• Press “Enter” whenever they ask
for passphrase
Registering your ssh key to github
• Go to Settings from your
github account
Registering your ssh key to github
• Go to SSH keys tab
Registering your ssh key to github
• Press Add SSH key
Registering your ssh key to github
• Open C:Usersuser.ssh
in your file explorer
• Open id_rsa.pub file in
notepad
• Copy the text and paste it
to the key field in
github.com
Registering your ssh key to github
• Open C:Usersuser.ssh
in your file explorer
• Open id_rsa.pub file in
notepad
• Copy the text and paste it
to the key field in
github.com
• Press Add key
Creating a repository
• Create new
repository in
github.com
Creating a repository
• Create new
repository in
github.com
Config and use
• Open Git bash terminal in the
corresponding folder
Config and use
• git config --global
user.name
“yourusername“
• git config --global
user.email
“youremail@email.com
"
Config and use
Type the following commands in the terminal
git init
git add –A
git commit -m "first commit“
git remote add origin git@github.com:faysalhossain2007/my-first-git-project.git
git push -u origin master
Teamwork
• Give permission to your
partner in your repository so
that he can update the project
by pushing the latest code.
• To give this permission go to
settings of your repository
• Then go to Collaborators tab
• Type the email or username
whom you want to give the
access
Teamwork
• Give permission to your
partner in your repository so
that he can update the project
by pushing the latest code.
• To give this permission go to
settings of your repository
• Then go to Collaborators tab
• Type the email or username
whom you want to give the
access
Teamwork
• Give permission to your
partner in your repository so
that he can update the project
by pushing the latest code.
• To give this permission go to
settings of your repository
• Then go to Collaborators tab
• Type the email or username
whom you want to give the
access
Teamwork
• When ever you do some change in your file under the project
directory then first add it by typing : git add –A in the terminal
• Then give the commit a name to identify your work by typing : git
commit –m “your message”
• Push it to the github by typing : git push origin master
• Your partner can have the latest updates of the project by pulling the
updated code. To do this he needs to give the following command in
the terminal : git pull origin master
That’s it 

More Related Content

What's hot

Operating PostgreSQL at Scale with Kubernetes
Operating PostgreSQL at Scale with KubernetesOperating PostgreSQL at Scale with Kubernetes
Operating PostgreSQL at Scale with Kubernetes
Jonathan Katz
 

What's hot (20)

Operating PostgreSQL at Scale with Kubernetes
Operating PostgreSQL at Scale with KubernetesOperating PostgreSQL at Scale with Kubernetes
Operating PostgreSQL at Scale with Kubernetes
 
[2019] PAYCO 쇼핑 마이크로서비스 아키텍처(MSA) 전환기
[2019] PAYCO 쇼핑 마이크로서비스 아키텍처(MSA) 전환기[2019] PAYCO 쇼핑 마이크로서비스 아키텍처(MSA) 전환기
[2019] PAYCO 쇼핑 마이크로서비스 아키텍처(MSA) 전환기
 
Cloud Native Camel Design Patterns
Cloud Native Camel Design PatternsCloud Native Camel Design Patterns
Cloud Native Camel Design Patterns
 
Git
GitGit
Git
 
Write microservice in golang
Write microservice in golangWrite microservice in golang
Write microservice in golang
 
DevOpsDays Taipei 2019 - Mastering IaC the DevOps Way
DevOpsDays Taipei 2019 - Mastering IaC the DevOps WayDevOpsDays Taipei 2019 - Mastering IaC the DevOps Way
DevOpsDays Taipei 2019 - Mastering IaC the DevOps Way
 
ES2015 / ES6: Basics of modern Javascript
ES2015 / ES6: Basics of modern JavascriptES2015 / ES6: Basics of modern Javascript
ES2015 / ES6: Basics of modern Javascript
 
잘 키운 모노리스 하나 열 마이크로서비스 안 부럽다
잘 키운 모노리스 하나 열 마이크로서비스 안 부럽다잘 키운 모노리스 하나 열 마이크로서비스 안 부럽다
잘 키운 모노리스 하나 열 마이크로서비스 안 부럽다
 
Testing with JUnit 5 and Spring - Spring I/O 2022
Testing with JUnit 5 and Spring - Spring I/O 2022Testing with JUnit 5 and Spring - Spring I/O 2022
Testing with JUnit 5 and Spring - Spring I/O 2022
 
RSpec & TDD Tutorial
RSpec & TDD TutorialRSpec & TDD Tutorial
RSpec & TDD Tutorial
 
이벤트 기반 분산 시스템을 향한 여정
이벤트 기반 분산 시스템을 향한 여정이벤트 기반 분산 시스템을 향한 여정
이벤트 기반 분산 시스템을 향한 여정
 
[오픈소스컨설팅] 아파치톰캣 운영가이드 v1.3
[오픈소스컨설팅] 아파치톰캣 운영가이드 v1.3[오픈소스컨설팅] 아파치톰캣 운영가이드 v1.3
[오픈소스컨설팅] 아파치톰캣 운영가이드 v1.3
 
Introduction to Maven
Introduction to MavenIntroduction to Maven
Introduction to Maven
 
Advanced javascript
Advanced javascriptAdvanced javascript
Advanced javascript
 
Cilium: Kernel Native Security & DDOS Mitigation for Microservices with BPF
Cilium: Kernel Native Security & DDOS Mitigation for Microservices with BPFCilium: Kernel Native Security & DDOS Mitigation for Microservices with BPF
Cilium: Kernel Native Security & DDOS Mitigation for Microservices with BPF
 
Spring Cloud Config
Spring Cloud ConfigSpring Cloud Config
Spring Cloud Config
 
TypeScript - An Introduction
TypeScript - An IntroductionTypeScript - An Introduction
TypeScript - An Introduction
 
炎炎夏日學 Android 課程 - Part1: Kotlin 語法介紹
炎炎夏日學 Android 課程 -  Part1: Kotlin 語法介紹炎炎夏日學 Android 課程 -  Part1: Kotlin 語法介紹
炎炎夏日學 Android 課程 - Part1: Kotlin 語法介紹
 
Infrastructure-as-Code (IaC) using Terraform
Infrastructure-as-Code (IaC) using TerraformInfrastructure-as-Code (IaC) using Terraform
Infrastructure-as-Code (IaC) using Terraform
 
Maven tutorial
Maven tutorialMaven tutorial
Maven tutorial
 

Similar to How to install and use git

Openstack contribution process
Openstack contribution processOpenstack contribution process
Openstack contribution process
Syed Armani
 
OpenStack Contribution Process
OpenStack Contribution ProcessOpenStack Contribution Process
OpenStack Contribution Process
openstackindia
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdf
BruceLee275640
 

Similar to How to install and use git (20)

Git first contributions
Git first contributionsGit first contributions
Git first contributions
 
Hello, Git!
Hello, Git!Hello, Git!
Hello, Git!
 
Hello Git
Hello GitHello Git
Hello Git
 
Git within RStudio
Git within RStudioGit within RStudio
Git within RStudio
 
Git ritesh venture_pact
Git ritesh venture_pactGit ritesh venture_pact
Git ritesh venture_pact
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction 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
Beginner's guide to git and github
 
Git/GitHub
Git/GitHubGit/GitHub
Git/GitHub
 
16 Git
16 Git16 Git
16 Git
 
DevOps Expt 2.pdf
DevOps Expt 2.pdfDevOps Expt 2.pdf
DevOps Expt 2.pdf
 
Openstack contribution process
Openstack contribution processOpenstack contribution process
Openstack contribution process
 
OpenStack Contribution Process
OpenStack Contribution ProcessOpenStack Contribution Process
OpenStack Contribution Process
 
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
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdf
 
Bitbucket git-bamboo-jira
Bitbucket git-bamboo-jiraBitbucket git-bamboo-jira
Bitbucket git-bamboo-jira
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
 
Git101
Git101Git101
Git101
 
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
 
Git Workshop
Git WorkshopGit Workshop
Git Workshop
 
How To Use The Codename One Sources
How To Use The Codename One SourcesHow To Use The Codename One Sources
How To Use The Codename One Sources
 

More from Faysal Hossain Shezan (6)

Testing Alexa Skill
Testing Alexa SkillTesting Alexa Skill
Testing Alexa Skill
 
Gcp github-bigquery
Gcp github-bigqueryGcp github-bigquery
Gcp github-bigquery
 
Git Tutorial (Part 2: Git Merge)
Git Tutorial (Part 2: Git Merge)Git Tutorial (Part 2: Git Merge)
Git Tutorial (Part 2: Git Merge)
 
Security of Voice Controlled Device
Security of Voice Controlled DeviceSecurity of Voice Controlled Device
Security of Voice Controlled Device
 
Click jacking
Click jacking Click jacking
Click jacking
 
Android studio installation
Android studio installationAndroid studio installation
Android studio installation
 

Recently uploaded

Recently uploaded (20)

WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
 
Evolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI EraEvolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI Era
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdfAzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
 
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
 
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...
 
Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2
 
WSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - Kanchana
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
WSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
WSO2CON2024 - Why Should You Consider Ballerina for Your Next IntegrationWSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
WSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
 
WSO2Con2024 - Unleashing the Financial Potential of 13 Million People
WSO2Con2024 - Unleashing the Financial Potential of 13 Million PeopleWSO2Con2024 - Unleashing the Financial Potential of 13 Million People
WSO2Con2024 - Unleashing the Financial Potential of 13 Million People
 

How to install and use git

  • 1. How to install and use git
  • 8. Register to github.com • Open an account in https://github.com/
  • 9. Generating ssh key • Open GIT bash terminal . • Go to root directory by typing cd~ • Type ssh-keygen.exe –t rsa –C “mygit@gmail.com“ (email that you have used when you register to github.com ) • Press “Enter” whenever they ask for passphrase
  • 10. Generating ssh key • Open GIT bash terminal . • Go to root directory by typing cd~ • Type ssh-keygen.exe –t rsa –C “mygit@gmail.com“ (email that you have used when you register to github.com ) • Press “Enter” whenever they ask for passphrase
  • 11. Registering your ssh key to github • Go to Settings from your github account
  • 12. Registering your ssh key to github • Go to SSH keys tab
  • 13. Registering your ssh key to github • Press Add SSH key
  • 14. Registering your ssh key to github • Open C:Usersuser.ssh in your file explorer • Open id_rsa.pub file in notepad • Copy the text and paste it to the key field in github.com
  • 15. Registering your ssh key to github • Open C:Usersuser.ssh in your file explorer • Open id_rsa.pub file in notepad • Copy the text and paste it to the key field in github.com • Press Add key
  • 16. Creating a repository • Create new repository in github.com
  • 17. Creating a repository • Create new repository in github.com
  • 18. Config and use • Open Git bash terminal in the corresponding folder
  • 19. Config and use • git config --global user.name “yourusername“ • git config --global user.email “youremail@email.com "
  • 20. Config and use Type the following commands in the terminal git init git add –A git commit -m "first commit“ git remote add origin git@github.com:faysalhossain2007/my-first-git-project.git git push -u origin master
  • 21. Teamwork • Give permission to your partner in your repository so that he can update the project by pushing the latest code. • To give this permission go to settings of your repository • Then go to Collaborators tab • Type the email or username whom you want to give the access
  • 22. Teamwork • Give permission to your partner in your repository so that he can update the project by pushing the latest code. • To give this permission go to settings of your repository • Then go to Collaborators tab • Type the email or username whom you want to give the access
  • 23. Teamwork • Give permission to your partner in your repository so that he can update the project by pushing the latest code. • To give this permission go to settings of your repository • Then go to Collaborators tab • Type the email or username whom you want to give the access
  • 24. Teamwork • When ever you do some change in your file under the project directory then first add it by typing : git add –A in the terminal • Then give the commit a name to identify your work by typing : git commit –m “your message” • Push it to the github by typing : git push origin master • Your partner can have the latest updates of the project by pulling the updated code. To do this he needs to give the following command in the terminal : git pull origin master