Advance workshop on git

Himanshu Agrawal
Himanshu AgrawalStudent at JSS Academy um Google Developers Group
GIT & GITHUB
Advance Workshop
(An extension of Extra Bit with Git held on 21st Sep 16)
Brief Recall
WHAT IS GIT
● Git is a free and distributed version control and source
code management system with an emphasis on speed
and efficiency.
WHAT IS GITHUB
● Github is a web based Git repository hosting service which
offers all version control functionality of git and adds
some features of its own.
Basic Workflow
● Initializing a directory as Git Repo:
○ git init
● Creating a repo on github online:
○ Visit www.github.com
● Linking working directory to github repo:
○ git remote add origin http://github.com/username/reponame
● Updating local repository :
○ git pull
Basic Workflow
● Adding changes to staging area:
○ git add .
● Taking Backup in form of snapshots:
○ git commit -m “message”
● Publishing the commits to github
○ git push origin master
Tip: You can also clone a repo and make changes instead of using git init
git clone github_repo_url
Contribution to Open Source
A great way to get involved in open source is to contribute to
the existing projects based on your skills and interests. Git
Hub is home to more than 5 million open source projects of
every skill set like recipes, HTML/CSS, Ruby, Astrophysics
and many more.
Workflow
● Find a project.
● Go through Documentation.
● Fork and Clone the repository.
● Make necessary changes.
● Create an issue(Optional).
● Open Pull Request.
If your pull request is merged-great! If it is not, it may not be what project manager
had in mind.
Find a Project
We have a test repo for you to work on.
Search for “gdgtestrepo” in search bar and open the repository
Fork a Repo
A fork is a copy of repository. Forking other’s repository allows you to freely
experiment with changes without affecting the original project.
Creating an issue
Create an Issue and tell the owner that you would like to work on the issue.
Pull Request
Create a pull request to propose and collaborate on changes to a repository.
These changes are proposed in a branch, which ensures that the master branch
only contains finished and approved work.
Merge
The owner of the repo reviews your code and merges it if he
finds it suitable for his project.
Basics of Branching
When you're working on a project, you're going to have a
bunch of different features or ideas in progress at any given
time – some of which are ready to go, and others which are
not. Branching exists to help you manage this workflow.
You're free to experiment and commit changes in branches
other than master branch safely.
Create a Branch
git checkout -b feature_x
Add Commits
Add, Edit or delete a file and commit
Open a Pull Request
Discuss and Review your Code
Deploy (Test your feature)
Merge
A Website hosting platform
There is something interesting for you guys!!!
You all know basic HTML (build a simple website) but what if you get a platform to
host your site. Github provides one.
When you create a repository named username.github.io and add your html
content, Github automatically publishes your website.
Ex. microsoft.github.io
Questions Please
Your Feedback are Important to us: gdgjss.in/?p=751
1 von 20

Recomendados

Extra bit with git von
Extra bit with gitExtra bit with git
Extra bit with gitHimanshu Agrawal
838 views19 Folien
Extra bit with git von
Extra bit with gitExtra bit with git
Extra bit with gitgdgjss
521 views19 Folien
Git and github fundamentals von
Git and github fundamentalsGit and github fundamentals
Git and github fundamentalsRajKharvar
186 views28 Folien
Introduction to git and github von
Introduction to git and githubIntroduction to git and github
Introduction to git and githubAderemi Dadepo
4.3K views23 Folien
Github von
GithubGithub
GithubJaneAlamAdnan
212 views23 Folien
A prentation on github von
A prentation on githubA prentation on github
A prentation on githubVeronica Ojochona Michael (MCP)
234 views21 Folien

Más contenido relacionado

Was ist angesagt?

HacktoberFest-Git&GitHub von
HacktoberFest-Git&GitHubHacktoberFest-Git&GitHub
HacktoberFest-Git&GitHubGDSCIIITBbsr
186 views9 Folien
How to install and use git von
How to install and  use gitHow to install and  use git
How to install and use gitFaysal Hossain Shezan
446 views25 Folien
Git and GitHub von
Git and GitHubGit and GitHub
Git and GitHubRick Umali
507 views20 Folien
Workshop on Git and GitHub von
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHubDSCVSSUT
259 views18 Folien
Github von
GithubGithub
GithubIFEDAYO ADEYEMI
200 views14 Folien
Git n git hub von
Git n git hubGit n git hub
Git n git hubJiwon Baek
524 views22 Folien

Was ist angesagt?(20)

HacktoberFest-Git&GitHub von GDSCIIITBbsr
HacktoberFest-Git&GitHubHacktoberFest-Git&GitHub
HacktoberFest-Git&GitHub
GDSCIIITBbsr186 views
Git and GitHub von Rick Umali
Git and GitHubGit and GitHub
Git and GitHub
Rick Umali507 views
Workshop on Git and GitHub von DSCVSSUT
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHub
DSCVSSUT259 views
Git 101 Workshop von Joy Seng
Git 101 WorkshopGit 101 Workshop
Git 101 Workshop
Joy Seng133 views
Github Case Study By Amil Ali von AmilAli1
Github Case Study By Amil AliGithub Case Study By Amil Ali
Github Case Study By Amil Ali
AmilAli1478 views
Introduction to Git and GitHub Part 1 von Omar Fathy
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
Omar Fathy305 views
Github 101 An Adventurer's Guide To Open Source von Prachitibhukan
Github 101   An Adventurer's Guide To Open SourceGithub 101   An Adventurer's Guide To Open Source
Github 101 An Adventurer's Guide To Open Source
Prachitibhukan147 views
Git tutorial von TingYen Lee
Git tutorial Git tutorial
Git tutorial
TingYen Lee3.4K views
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ... von Simplilearn
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Simplilearn5.9K views

Similar a Advance workshop on git

Get Git with It! A Developer's Workshop.pptx von
Get Git with It! A Developer's Workshop.pptxGet Git with It! A Developer's Workshop.pptx
Get Git with It! A Developer's Workshop.pptxGoogle Developer Students Clubs - CTU
22 views16 Folien
GITHUB von
GITHUBGITHUB
GITHUBrajeshwari5317
196 views32 Folien
Git Lab Introduction von
Git Lab IntroductionGit Lab Introduction
Git Lab IntroductionKrunal Doshi
843 views24 Folien
Git, github and the hacktober fest von
Git, github and the hacktober festGit, github and the hacktober fest
Git, github and the hacktober festUtkarshRaj83
83 views32 Folien
GDSC Git event 2023.pptx von
GDSC Git event 2023.pptxGDSC Git event 2023.pptx
GDSC Git event 2023.pptxfsxflyer789Productio
75 views28 Folien
database.pptx von
database.pptxdatabase.pptx
database.pptxDatabase110
1 view16 Folien

Similar a Advance workshop on git(20)

Git, github and the hacktober fest von UtkarshRaj83
Git, github and the hacktober festGit, github and the hacktober fest
Git, github and the hacktober fest
UtkarshRaj8383 views
Collaborative development with Git | Workshop von Anuchit Chalothorn
Collaborative development with Git | WorkshopCollaborative development with Git | Workshop
Collaborative development with Git | Workshop
Anuchit Chalothorn1.7K views
A Tutorial for GitHub.pdf von Amarnadh36
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
Amarnadh3649 views
Beginner Workshop for Student Developers - Tratech-presentation.pdf von GDSCKNUST
Beginner Workshop for Student Developers - Tratech-presentation.pdfBeginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdf
GDSCKNUST23 views

Último

Create a Structure in VBNet.pptx von
Create a Structure in VBNet.pptxCreate a Structure in VBNet.pptx
Create a Structure in VBNet.pptxBreach_P
78 views8 Folien
Education and Diversity.pptx von
Education and Diversity.pptxEducation and Diversity.pptx
Education and Diversity.pptxDrHafizKosar
193 views16 Folien
Classification of crude drugs.pptx von
Classification of crude drugs.pptxClassification of crude drugs.pptx
Classification of crude drugs.pptxGayatriPatra14
101 views13 Folien
CONTENTS.pptx von
CONTENTS.pptxCONTENTS.pptx
CONTENTS.pptxiguerendiain
62 views17 Folien
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx von
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptxEIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptxISSIP
386 views50 Folien
Psychology KS5 von
Psychology KS5Psychology KS5
Psychology KS5WestHatch
119 views5 Folien

Último(20)

Create a Structure in VBNet.pptx von Breach_P
Create a Structure in VBNet.pptxCreate a Structure in VBNet.pptx
Create a Structure in VBNet.pptx
Breach_P78 views
Education and Diversity.pptx von DrHafizKosar
Education and Diversity.pptxEducation and Diversity.pptx
Education and Diversity.pptx
DrHafizKosar193 views
Classification of crude drugs.pptx von GayatriPatra14
Classification of crude drugs.pptxClassification of crude drugs.pptx
Classification of crude drugs.pptx
GayatriPatra14101 views
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx von ISSIP
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptxEIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx
ISSIP386 views
Psychology KS5 von WestHatch
Psychology KS5Psychology KS5
Psychology KS5
WestHatch119 views
The Accursed House by Émile Gaboriau von DivyaSheta
The Accursed House  by Émile GaboriauThe Accursed House  by Émile Gaboriau
The Accursed House by Émile Gaboriau
DivyaSheta223 views
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB... von Nguyen Thanh Tu Collection
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
Narration lesson plan von TARIQ KHAN
Narration lesson planNarration lesson plan
Narration lesson plan
TARIQ KHAN61 views
Dance KS5 Breakdown von WestHatch
Dance KS5 BreakdownDance KS5 Breakdown
Dance KS5 Breakdown
WestHatch99 views
11.28.23 Social Capital and Social Exclusion.pptx von mary850239
11.28.23 Social Capital and Social Exclusion.pptx11.28.23 Social Capital and Social Exclusion.pptx
11.28.23 Social Capital and Social Exclusion.pptx
mary850239312 views
Class 9 lesson plans von TARIQ KHAN
Class 9 lesson plansClass 9 lesson plans
Class 9 lesson plans
TARIQ KHAN51 views
Ch. 7 Political Participation and Elections.pptx von Rommel Regala
Ch. 7 Political Participation and Elections.pptxCh. 7 Political Participation and Elections.pptx
Ch. 7 Political Participation and Elections.pptx
Rommel Regala111 views
The basics - information, data, technology and systems.pdf von JonathanCovena1
The basics - information, data, technology and systems.pdfThe basics - information, data, technology and systems.pdf
The basics - information, data, technology and systems.pdf
JonathanCovena1146 views
Monthly Information Session for MV Asterix (November) von Esquimalt MFRC
Monthly Information Session for MV Asterix (November)Monthly Information Session for MV Asterix (November)
Monthly Information Session for MV Asterix (November)
Esquimalt MFRC72 views

Advance workshop on git

  • 1. GIT & GITHUB Advance Workshop (An extension of Extra Bit with Git held on 21st Sep 16)
  • 2. Brief Recall WHAT IS GIT ● Git is a free and distributed version control and source code management system with an emphasis on speed and efficiency. WHAT IS GITHUB ● Github is a web based Git repository hosting service which offers all version control functionality of git and adds some features of its own.
  • 3. Basic Workflow ● Initializing a directory as Git Repo: ○ git init ● Creating a repo on github online: ○ Visit www.github.com ● Linking working directory to github repo: ○ git remote add origin http://github.com/username/reponame ● Updating local repository : ○ git pull
  • 4. Basic Workflow ● Adding changes to staging area: ○ git add . ● Taking Backup in form of snapshots: ○ git commit -m “message” ● Publishing the commits to github ○ git push origin master Tip: You can also clone a repo and make changes instead of using git init git clone github_repo_url
  • 5. Contribution to Open Source A great way to get involved in open source is to contribute to the existing projects based on your skills and interests. Git Hub is home to more than 5 million open source projects of every skill set like recipes, HTML/CSS, Ruby, Astrophysics and many more.
  • 6. Workflow ● Find a project. ● Go through Documentation. ● Fork and Clone the repository. ● Make necessary changes. ● Create an issue(Optional). ● Open Pull Request. If your pull request is merged-great! If it is not, it may not be what project manager had in mind.
  • 7. Find a Project We have a test repo for you to work on. Search for “gdgtestrepo” in search bar and open the repository
  • 8. Fork a Repo A fork is a copy of repository. Forking other’s repository allows you to freely experiment with changes without affecting the original project.
  • 9. Creating an issue Create an Issue and tell the owner that you would like to work on the issue.
  • 10. Pull Request Create a pull request to propose and collaborate on changes to a repository. These changes are proposed in a branch, which ensures that the master branch only contains finished and approved work.
  • 11. Merge The owner of the repo reviews your code and merges it if he finds it suitable for his project.
  • 12. Basics of Branching When you're working on a project, you're going to have a bunch of different features or ideas in progress at any given time – some of which are ready to go, and others which are not. Branching exists to help you manage this workflow. You're free to experiment and commit changes in branches other than master branch safely.
  • 13. Create a Branch git checkout -b feature_x
  • 14. Add Commits Add, Edit or delete a file and commit
  • 15. Open a Pull Request
  • 16. Discuss and Review your Code
  • 17. Deploy (Test your feature)
  • 18. Merge
  • 19. A Website hosting platform There is something interesting for you guys!!! You all know basic HTML (build a simple website) but what if you get a platform to host your site. Github provides one. When you create a repository named username.github.io and add your html content, Github automatically publishes your website. Ex. microsoft.github.io
  • 20. Questions Please Your Feedback are Important to us: gdgjss.in/?p=751