SlideShare une entreprise Scribd logo
1  sur  23
Md. Jane Alam Adnan
(Student)
Noakhali Science & Technology University
Gmail : adnannstu@gmail.com
Contact : 01825003211
Content Creator
Table of Content
 Git initialization
 Declare username and email(globally or locally)
 Check username and email
 Git status
 Add file
 Commit
 Remove file
 Master branch
 Branch create
 Shifting branch
 Check how many branch
 Merge branch
 Delete branch
 Clone
 Fetch & Pull
 Push Md. Jane Alam Adnan
(Student)
Noakhali Science & Technology University
Gmail : adnannstu@gmail.com
Contact : 01825003211
Content Creator
git initialization
1. go to your project folder.
2. Right click on your mouse.
3. Select git bush here.
4. Then type git init
5. Press Enter
username & email
1. In github command window you write….
2. git config –global user.name “NameHere” Press Enter
3. git config –global user.email “user@gmail.com” Press Enter
Global Declaration
username & email
1. In github command window you write….
2. git config user.name “NameHere”
3. git config user.email user@gmail.com
4. Press Enter
local Declaration
Check username & email
1. In github command window you write….
2. git config –list
3. Press Enter
Check git status
1. In github command window you write….
2. Git status
3. Press Enter
Add a specific file
1. In github command window you write….
2. git add filename(WithExtension)
3. Press Enter
Add all file of your project
1. In github command window you write….
2. git add –all or git add .
3. Press Enter
or
Commit
1. In github command window you write….
2. git commit –m “type a comment”
3. Press Enter
After update anything of your project you should commit it
Check how many Commit
1. In github command window you write….
2. git log
3. Press Enter
If you want to check how many commit you had done yet then you can write....
Fig : All commit show here
Remove any file
1. In github command window you write….
2. git rm filename(withExtension)
3. Press Enter
To remove any file form your github project then have to write……….
1. In github command window you write…
2. git reset HEAD filename
3. Press Enter
Master branch
1. In github command window you write….
2. git checkout master
3. Press Enter
Checkout master branch
Create Branch
1. In github command window you write….
2. git branch branchName
3. Press Enter
To create a branch for your project then you have to write…………..
Check how many branch
1. In github command window you write….
2. git branch
3. Press Enter
Active branch
Shift branch
1. In github command window you write….
2. git checkout branchname
3. Press Enter
if you work with a team, then the team member will work as a branch…….if you want to
Work from your branch then you have to checkout your branch……….
Merge
1. In github command window you write….
2. git merge branchname
3. Press Enter
If you want to merge your updated all file with your master branch.
First you have to go to your master branch then
Delete Branch
1. In github command window you write….
2. git branch –D branchname
3. Press Enter
Clone
1. In github command window you write….
2. git clone gitCloneLink
3. Press Enter
When you want to download a github file from the git server to your local computer
fetch
1. In github command window you write….
2. git fetch
3. Press Enter
When you update your project folder from your git repository,and still want this change will apply
Of your local computer project file. Then you have to write…………..
pull
1. In github command window you write….
2. git pull
3. Press Enter
After fetch your local file won’t be updated, for update you have to write
Another command like……….
push
1. In github command window you write….
2. git push
3. Press Enter
When you add a new file on your local project and want to upload these files on your git server
Md. Jane Alam Adnan
(Student)
Noakhali Science & Technology University
Gmail : adnannstu@gmail.com
Contact : 01825003211
Content Creator

Contenu connexe

Tendances

Introduction to Git Commands and Concepts
Introduction to Git Commands and ConceptsIntroduction to Git Commands and Concepts
Introduction to Git Commands and ConceptsCarl Brown
 
Git 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using GitGit 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using GitGeoff Hoffman
 
Introducing GitLab (September 2018)
Introducing GitLab (September 2018)Introducing GitLab (September 2018)
Introducing GitLab (September 2018)Noa Harel
 
Learning git
Learning gitLearning git
Learning gitSid Anand
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHubNicolás Tourné
 
Gitlab flow solo
Gitlab flow soloGitlab flow solo
Gitlab flow soloviniciusban
 
Git - An Introduction
Git - An IntroductionGit - An Introduction
Git - An IntroductionBehzad Altaf
 
Git Started With Git
Git Started With GitGit Started With Git
Git Started With GitNick Quaranto
 
Introduction to Git and GitHub
Introduction to Git and GitHubIntroduction to Git and GitHub
Introduction to Git and GitHubVikram SV
 
Git branching strategies
Git branching strategiesGit branching strategies
Git branching strategiesjstack
 
Container based CI/CD on GitHub Actions
Container based CI/CD on GitHub ActionsContainer based CI/CD on GitHub Actions
Container based CI/CD on GitHub ActionsCasey Lee
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab IntroductionKrunal Doshi
 

Tendances (20)

Git and github 101
Git and github 101Git and github 101
Git and github 101
 
GitHub
GitHubGitHub
GitHub
 
Introduction to Git Commands and Concepts
Introduction to Git Commands and ConceptsIntroduction to Git Commands and Concepts
Introduction to Git Commands and Concepts
 
Git 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using GitGit 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using Git
 
Introducing GitLab (September 2018)
Introducing GitLab (September 2018)Introducing GitLab (September 2018)
Introducing GitLab (September 2018)
 
GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
 
Learning git
Learning gitLearning git
Learning git
 
CI/CD with Github Actions
CI/CD with Github ActionsCI/CD with Github Actions
CI/CD with Github Actions
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
 
git and github
git and githubgit and github
git and github
 
Gitlab flow solo
Gitlab flow soloGitlab flow solo
Gitlab flow solo
 
Git - An Introduction
Git - An IntroductionGit - An Introduction
Git - An Introduction
 
Git 101 for Beginners
Git 101 for Beginners Git 101 for Beginners
Git 101 for Beginners
 
Git Started With Git
Git Started With GitGit Started With Git
Git Started With Git
 
Introduction to Git and GitHub
Introduction to Git and GitHubIntroduction to Git and GitHub
Introduction to Git and GitHub
 
Git branching strategies
Git branching strategiesGit branching strategies
Git branching strategies
 
Github basics
Github basicsGithub basics
Github basics
 
Container based CI/CD on GitHub Actions
Container based CI/CD on GitHub ActionsContainer based CI/CD on GitHub Actions
Container based CI/CD on GitHub Actions
 
Basic Git Intro
Basic Git IntroBasic Git Intro
Basic Git Intro
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab Introduction
 

Similaire à Github

3DC Intro to Git Workshop
3DC Intro to Git Workshop3DC Intro to Git Workshop
3DC Intro to Git WorkshopBeckhamWee
 
Practical git for developers
Practical git for developersPractical git for developers
Practical git for developersWim Godden
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git聖文 鄭
 
Git and Github.pptx
Git and Github.pptxGit and Github.pptx
Git and Github.pptxHitesh670643
 
Vincit Teatime 2015.2 - Otto Kekäläinen: Don't be a git
Vincit Teatime 2015.2 - Otto Kekäläinen: Don't be a gitVincit Teatime 2015.2 - Otto Kekäläinen: Don't be a git
Vincit Teatime 2015.2 - Otto Kekäläinen: Don't be a gitVincitOy
 
Github - Le Wagon Melbourne
Github - Le Wagon MelbourneGithub - Le Wagon Melbourne
Github - Le Wagon MelbournePaal Ringstad
 
Git & Github Workshop - Le Wagon Melbourne
Git & Github Workshop - Le Wagon MelbourneGit & Github Workshop - Le Wagon Melbourne
Git & Github Workshop - Le Wagon MelbournePaal Ringstad
 
Using Bitbucket and Mercurial
Using Bitbucket and MercurialUsing Bitbucket and Mercurial
Using Bitbucket and MercurialGramener
 
Gitt and Git-flow
Gitt and Git-flowGitt and Git-flow
Gitt and Git-flowMd. Masud
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and githubAderemi Dadepo
 
Bitbucket git-bamboo-jira
Bitbucket git-bamboo-jiraBitbucket git-bamboo-jira
Bitbucket git-bamboo-jiralenamattt
 

Similaire à Github (20)

Github
GithubGithub
Github
 
Git Init (Introduction to Git)
Git Init (Introduction to Git)Git Init (Introduction to Git)
Git Init (Introduction to Git)
 
16 Git
16 Git16 Git
16 Git
 
3DC Intro to Git Workshop
3DC Intro to Git Workshop3DC Intro to Git Workshop
3DC Intro to Git Workshop
 
Practical git for developers
Practical git for developersPractical git for developers
Practical git for developers
 
Git Hub Platform
Git Hub PlatformGit Hub Platform
Git Hub Platform
 
Git and git hub basics
Git and git hub basicsGit and git hub basics
Git and git hub basics
 
Git flow
Git flowGit flow
Git flow
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git
 
Git and Github.pptx
Git and Github.pptxGit and Github.pptx
Git and Github.pptx
 
Git essentials
Git essentialsGit essentials
Git essentials
 
Vincit Teatime 2015.2 - Otto Kekäläinen: Don't be a git
Vincit Teatime 2015.2 - Otto Kekäläinen: Don't be a gitVincit Teatime 2015.2 - Otto Kekäläinen: Don't be a git
Vincit Teatime 2015.2 - Otto Kekäläinen: Don't be a git
 
Github - Le Wagon Melbourne
Github - Le Wagon MelbourneGithub - Le Wagon Melbourne
Github - Le Wagon Melbourne
 
Git within RStudio
Git within RStudioGit within RStudio
Git within RStudio
 
Git & Github Workshop - Le Wagon Melbourne
Git & Github Workshop - Le Wagon MelbourneGit & Github Workshop - Le Wagon Melbourne
Git & Github Workshop - Le Wagon Melbourne
 
Using Bitbucket and Mercurial
Using Bitbucket and MercurialUsing Bitbucket and Mercurial
Using Bitbucket and Mercurial
 
Gitt and Git-flow
Gitt and Git-flowGitt and Git-flow
Gitt and Git-flow
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
 
Bitbucket git-bamboo-jira
Bitbucket git-bamboo-jiraBitbucket git-bamboo-jira
Bitbucket git-bamboo-jira
 
Git presentation
Git presentationGit presentation
Git presentation
 

Dernier

SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringHironori Washizaki
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentationvaddepallysandeep122
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Natan Silnitsky
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationBradBedford3
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdfExploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdfkalichargn70th171
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commercemanigoyal112
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceBrainSell Technologies
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odishasmiwainfosol
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 

Dernier (20)

SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their Engineering
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentation
 
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort ServiceHot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
 
Odoo Development Company in India | Devintelle Consulting Service
Odoo Development Company in India | Devintelle Consulting ServiceOdoo Development Company in India | Devintelle Consulting Service
Odoo Development Company in India | Devintelle Consulting Service
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion Application
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdfExploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commerce
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 

Github

  • 1. Md. Jane Alam Adnan (Student) Noakhali Science & Technology University Gmail : adnannstu@gmail.com Contact : 01825003211 Content Creator
  • 2. Table of Content  Git initialization  Declare username and email(globally or locally)  Check username and email  Git status  Add file  Commit  Remove file  Master branch  Branch create  Shifting branch  Check how many branch  Merge branch  Delete branch  Clone  Fetch & Pull  Push Md. Jane Alam Adnan (Student) Noakhali Science & Technology University Gmail : adnannstu@gmail.com Contact : 01825003211 Content Creator
  • 3. git initialization 1. go to your project folder. 2. Right click on your mouse. 3. Select git bush here. 4. Then type git init 5. Press Enter
  • 4. username & email 1. In github command window you write…. 2. git config –global user.name “NameHere” Press Enter 3. git config –global user.email “user@gmail.com” Press Enter Global Declaration
  • 5. username & email 1. In github command window you write…. 2. git config user.name “NameHere” 3. git config user.email user@gmail.com 4. Press Enter local Declaration
  • 6. Check username & email 1. In github command window you write…. 2. git config –list 3. Press Enter
  • 7. Check git status 1. In github command window you write…. 2. Git status 3. Press Enter
  • 8. Add a specific file 1. In github command window you write…. 2. git add filename(WithExtension) 3. Press Enter
  • 9. Add all file of your project 1. In github command window you write…. 2. git add –all or git add . 3. Press Enter or
  • 10. Commit 1. In github command window you write…. 2. git commit –m “type a comment” 3. Press Enter After update anything of your project you should commit it
  • 11. Check how many Commit 1. In github command window you write…. 2. git log 3. Press Enter If you want to check how many commit you had done yet then you can write.... Fig : All commit show here
  • 12. Remove any file 1. In github command window you write…. 2. git rm filename(withExtension) 3. Press Enter To remove any file form your github project then have to write………. 1. In github command window you write… 2. git reset HEAD filename 3. Press Enter
  • 13. Master branch 1. In github command window you write…. 2. git checkout master 3. Press Enter Checkout master branch
  • 14. Create Branch 1. In github command window you write…. 2. git branch branchName 3. Press Enter To create a branch for your project then you have to write…………..
  • 15. Check how many branch 1. In github command window you write…. 2. git branch 3. Press Enter Active branch
  • 16. Shift branch 1. In github command window you write…. 2. git checkout branchname 3. Press Enter if you work with a team, then the team member will work as a branch…….if you want to Work from your branch then you have to checkout your branch……….
  • 17. Merge 1. In github command window you write…. 2. git merge branchname 3. Press Enter If you want to merge your updated all file with your master branch. First you have to go to your master branch then
  • 18. Delete Branch 1. In github command window you write…. 2. git branch –D branchname 3. Press Enter
  • 19. Clone 1. In github command window you write…. 2. git clone gitCloneLink 3. Press Enter When you want to download a github file from the git server to your local computer
  • 20. fetch 1. In github command window you write…. 2. git fetch 3. Press Enter When you update your project folder from your git repository,and still want this change will apply Of your local computer project file. Then you have to write…………..
  • 21. pull 1. In github command window you write…. 2. git pull 3. Press Enter After fetch your local file won’t be updated, for update you have to write Another command like……….
  • 22. push 1. In github command window you write…. 2. git push 3. Press Enter When you add a new file on your local project and want to upload these files on your git server
  • 23. Md. Jane Alam Adnan (Student) Noakhali Science & Technology University Gmail : adnannstu@gmail.com Contact : 01825003211 Content Creator