github_gyan.pptx

Hands-on GitHub Tutorial
Introduction to Git and GitHub
GDSC
IIIT Ranchi
After hearing about Git and Github
What is Git?
Git is a Version Control System (VCS) designed to make it
easier to have multiple versions of a code base,
sometimes across multiple developers or teams.
It allows you to see changes you make to your code and
easily revert them.
It is NOT GITHUB!
Ok, then what is Github?
github.com is a website that hosts git repositories on a
remote server.
Hosting repositories on Github facilitates the sharing of
codebases among teams by providing a GUI to easily fork
or clone repos to a local machine.
By pushing your repositories to Github, you will pretty
much automatically create your own developer portfolio
as well!
You can interact with Git using the Graphical User Interface (GUI)
provided by GitHub, or through the Command Line Interface (CLI).
Github Walkthrough
github_gyan.pptx
github_gyan.pptx
Tracking Files
Working with Command Line(CLI)
Elementary Commands
git config
command for setting information such as name or e-mail address
option –global for setting information globally for all repositories
git init
initializes git repository locally
git clone <repo_url>
command for cloning remote repository from hosting service
git add <file_name>
command for adding specified file to the list of changes to be committed (staging area)
Elementary Commands
git commit –m/-a
creates a new commit
commit message is required!
-m for commiting all staged content
–a for not just staged but all modified files
git status
displays difference between current state and last commit
displays all changed files including their states (untracked, modified, staged)
git log
lists the history of commits in the current branch
unique commit identifier
who made the commit
date and time
commit messages
additional information
there are many options for displaying commit history in different formats
Working with remote repositories
git fetch
this command copies the commits done in the remote repository to the remote branches
git pull
fetches the remote branch and automatically tries to merge it to the current local branch
git push
makes our local changes visible in remote repository
git merge <branch_name>
merging specified branch with the current one
git branch <new_branch>
command for creating new branch with given name
option –b for switching to new branch
Merge conflicts
github_gyan.pptx
github_gyan.pptx
git with VS Code
Untracked File Status (U):
Files not yet added to repository.
VS Code displays a U beside the filename.
Unmodified File Status:
Tracked files that have not been changed.
Modified File Status (M):
Tracked files that have been changed.
VS Code displays an M beside the filename
Ignore File Status:
Files that match a pattern or exact match in .gitignore
VS Code grays out the filename.
Staged File Status (A):
Tracked files that have been added.
VS Code displays an A beside the filename.
github_gyan.pptx
1 von 18

Recomendados

GDSC - Introduction to GIT von
GDSC - Introduction to GITGDSC - Introduction to GIT
GDSC - Introduction to GITViktorKatzenberger
238 views16 Folien
Introduction to Git & GitHub von
Introduction to Git & GitHubIntroduction to Git & GitHub
Introduction to Git & GitHubWasit Shafi
19 views15 Folien
Git&GitHub.pptx von
Git&GitHub.pptxGit&GitHub.pptx
Git&GitHub.pptxKondiVenkatesh1
21 views16 Folien
Git Commands Every Developer Should Know? von
Git Commands Every Developer Should Know?Git Commands Every Developer Should Know?
Git Commands Every Developer Should Know?9 series
138 views67 Folien
GIT By Sivakrishna von
GIT By SivakrishnaGIT By Sivakrishna
GIT By SivakrishnaNyros Technologies
1.1K views28 Folien
Git_and_GitHub Integration_with_Guidewire von
Git_and_GitHub Integration_with_GuidewireGit_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_GuidewireGandhi Ramu
628 views36 Folien

Más contenido relacionado

Similar a github_gyan.pptx

git github PPT_GDSCIIITK.pptx von
git github PPT_GDSCIIITK.pptxgit github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptxAbelPhilipJoseph
32 views31 Folien
Git and Github - A primer von
Git and Github - A primerGit and Github - A primer
Git and Github - A primerSuryakumar Sudar
33 views19 Folien
Hacktoberfest intro to Git and GitHub von
Hacktoberfest intro to Git and GitHubHacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHubDSC GVP
149 views21 Folien
Git and Github von
Git and GithubGit and Github
Git and GithubTeodora Ahkozidou
103 views32 Folien
Git and github von
Git and githubGit and github
Git and githubTeodora Ahkozidou
139 views32 Folien
Git Session 2K23.pptx von
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptxEshaan35
246 views56 Folien

Similar a github_gyan.pptx(20)

Hacktoberfest intro to Git and GitHub von DSC GVP
Hacktoberfest intro to Git and GitHubHacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHub
DSC GVP149 views
Git Session 2K23.pptx von Eshaan35
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptx
Eshaan35246 views
Advanced Web Development in PHP - Code Versioning and Branching with Git von Rasan Samarasinghe
Advanced Web Development in PHP - Code Versioning and Branching with GitAdvanced Web Development in PHP - Code Versioning and Branching with Git
Advanced Web Development in PHP - Code Versioning and Branching with Git
Rasan Samarasinghe405 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
Rc094 010d-git 2 - desconocido von Luis Bertel
Rc094 010d-git 2 - desconocidoRc094 010d-git 2 - desconocido
Rc094 010d-git 2 - desconocido
Luis Bertel1.7K views
Git 101 von jayrparro
Git 101Git 101
Git 101
jayrparro2.2K views
Git 入门与实践 von Terry Wang
Git 入门与实践Git 入门与实践
Git 入门与实践
Terry Wang478 views

Último

Psychology KS5 von
Psychology KS5Psychology KS5
Psychology KS5WestHatch
81 views5 Folien
Scope of Biochemistry.pptx von
Scope of Biochemistry.pptxScope of Biochemistry.pptx
Scope of Biochemistry.pptxshoba shoba
126 views55 Folien
OEB 2023 Co-learning To Speed Up AI Implementation in Courses.pptx von
OEB 2023 Co-learning To Speed Up AI Implementation in Courses.pptxOEB 2023 Co-learning To Speed Up AI Implementation in Courses.pptx
OEB 2023 Co-learning To Speed Up AI Implementation in Courses.pptxInge de Waard
169 views29 Folien
Community-led Open Access Publishing webinar.pptx von
Community-led Open Access Publishing webinar.pptxCommunity-led Open Access Publishing webinar.pptx
Community-led Open Access Publishing webinar.pptxJisc
91 views9 Folien
The Accursed House by Émile Gaboriau von
The Accursed House  by Émile GaboriauThe Accursed House  by Émile Gaboriau
The Accursed House by Émile GaboriauDivyaSheta
187 views15 Folien
Collective Bargaining and Understanding a Teacher Contract(16793704.1).pptx von
Collective Bargaining and Understanding a Teacher Contract(16793704.1).pptxCollective Bargaining and Understanding a Teacher Contract(16793704.1).pptx
Collective Bargaining and Understanding a Teacher Contract(16793704.1).pptxCenter for Integrated Training & Education
91 views57 Folien

Último(20)

Psychology KS5 von WestHatch
Psychology KS5Psychology KS5
Psychology KS5
WestHatch81 views
Scope of Biochemistry.pptx von shoba shoba
Scope of Biochemistry.pptxScope of Biochemistry.pptx
Scope of Biochemistry.pptx
shoba shoba126 views
OEB 2023 Co-learning To Speed Up AI Implementation in Courses.pptx von Inge de Waard
OEB 2023 Co-learning To Speed Up AI Implementation in Courses.pptxOEB 2023 Co-learning To Speed Up AI Implementation in Courses.pptx
OEB 2023 Co-learning To Speed Up AI Implementation in Courses.pptx
Inge de Waard169 views
Community-led Open Access Publishing webinar.pptx von Jisc
Community-led Open Access Publishing webinar.pptxCommunity-led Open Access Publishing webinar.pptx
Community-led Open Access Publishing webinar.pptx
Jisc91 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
DivyaSheta187 views
Use of Probiotics in Aquaculture.pptx von AKSHAY MANDAL
Use of Probiotics in Aquaculture.pptxUse of Probiotics in Aquaculture.pptx
Use of Probiotics in Aquaculture.pptx
AKSHAY MANDAL95 views
Structure and Functions of Cell.pdf von Nithya Murugan
Structure and Functions of Cell.pdfStructure and Functions of Cell.pdf
Structure and Functions of Cell.pdf
Nithya Murugan455 views
UWP OA Week Presentation (1).pptx von Jisc
UWP OA Week Presentation (1).pptxUWP OA Week Presentation (1).pptx
UWP OA Week Presentation (1).pptx
Jisc87 views
Narration lesson plan.docx von TARIQ KHAN
Narration lesson plan.docxNarration lesson plan.docx
Narration lesson plan.docx
TARIQ KHAN108 views
Classification of crude drugs.pptx von GayatriPatra14
Classification of crude drugs.pptxClassification of crude drugs.pptx
Classification of crude drugs.pptx
GayatriPatra1483 views
Narration ppt.pptx von TARIQ KHAN
Narration  ppt.pptxNarration  ppt.pptx
Narration ppt.pptx
TARIQ KHAN131 views
REPRESENTATION - GAUNTLET.pptx von iammrhaywood
REPRESENTATION - GAUNTLET.pptxREPRESENTATION - GAUNTLET.pptx
REPRESENTATION - GAUNTLET.pptx
iammrhaywood91 views
Sociology KS5 von WestHatch
Sociology KS5Sociology KS5
Sociology KS5
WestHatch65 views
Are we onboard yet University of Sussex.pptx von Jisc
Are we onboard yet University of Sussex.pptxAre we onboard yet University of Sussex.pptx
Are we onboard yet University of Sussex.pptx
Jisc93 views
Solar System and Galaxies.pptx von DrHafizKosar
Solar System and Galaxies.pptxSolar System and Galaxies.pptx
Solar System and Galaxies.pptx
DrHafizKosar89 views

github_gyan.pptx

  • 1. Hands-on GitHub Tutorial Introduction to Git and GitHub GDSC IIIT Ranchi
  • 2. After hearing about Git and Github
  • 3. What is Git? Git is a Version Control System (VCS) designed to make it easier to have multiple versions of a code base, sometimes across multiple developers or teams. It allows you to see changes you make to your code and easily revert them. It is NOT GITHUB!
  • 4. Ok, then what is Github? github.com is a website that hosts git repositories on a remote server. Hosting repositories on Github facilitates the sharing of codebases among teams by providing a GUI to easily fork or clone repos to a local machine. By pushing your repositories to Github, you will pretty much automatically create your own developer portfolio as well!
  • 5. You can interact with Git using the Graphical User Interface (GUI) provided by GitHub, or through the Command Line Interface (CLI).
  • 10. Working with Command Line(CLI)
  • 11. Elementary Commands git config command for setting information such as name or e-mail address option –global for setting information globally for all repositories git init initializes git repository locally git clone <repo_url> command for cloning remote repository from hosting service git add <file_name> command for adding specified file to the list of changes to be committed (staging area)
  • 12. Elementary Commands git commit –m/-a creates a new commit commit message is required! -m for commiting all staged content –a for not just staged but all modified files git status displays difference between current state and last commit displays all changed files including their states (untracked, modified, staged) git log lists the history of commits in the current branch unique commit identifier who made the commit date and time commit messages additional information there are many options for displaying commit history in different formats
  • 13. Working with remote repositories git fetch this command copies the commits done in the remote repository to the remote branches git pull fetches the remote branch and automatically tries to merge it to the current local branch git push makes our local changes visible in remote repository git merge <branch_name> merging specified branch with the current one git branch <new_branch> command for creating new branch with given name option –b for switching to new branch
  • 17. git with VS Code Untracked File Status (U): Files not yet added to repository. VS Code displays a U beside the filename. Unmodified File Status: Tracked files that have not been changed. Modified File Status (M): Tracked files that have been changed. VS Code displays an M beside the filename Ignore File Status: Files that match a pattern or exact match in .gitignore VS Code grays out the filename. Staged File Status (A): Tracked files that have been added. VS Code displays an A beside the filename.