SlideShare a Scribd company logo
2
Most read
6
Most read
7
Most read
Git & Visual Studio Code
Youth Techclub 06.04.2016
Content
What is Git? Why do we need it?
What are the core principles behind Git?
What is GitHub and how to work with it?
What is Visual Studio Code and how it integrates with GitHub?
How to work with Visual Studio Code extentions?
Agenda
Overview of Git and principles behind it
Demo of main Git commands
Overview of GitHub
Demo of main functionality in GitHub
Demo of Visual Studio Code
Task
What us Git?
Free and open source distributed version control system.
Popular with open source projects.
Allows us to create local repositories based on remote repository and
later on push changes from local to remote.
Git distribution
Remote
Local
Some basic Git terminology
Branch – a specific version of code
Master branch – initial branch in repository
You can branches both locally and remotely.
File status lifecycle in Git
File status in action
git init – creates a repository in folder
git status – checks the current status of repository
git add – adds file to repository, stages the changes
git commit – commits changes in the branch
Comments:
- Each commit is identified by hash number
- .git folder contains configuration information about repository
More on branching
git branch <branchname> - creates a new local branch
git checkout <brachname> - makes the specified branch as active
Branches and commits
Workflow in Git
More commands
git push – pushes all commits to the remote branch
git fetch - check how far behind local branch is
git pull – take all commits that are in the remote branch
git checkout – checkout specific branch in local repository
git merge – merge changes from one branch into another one
P.S. We will check these when we set up GitHub
GitHub
Web-based Git repository hosting service.
Communities can host open source projects.
You can search for projects to participate.
Private repositories are possible (of course, you will have to pay for
them )
GitHub registration
www.github.com
Use university email to register with GitHub education pack to get
private repositories too.
Demo
Create a new empty repository.
Add created repository as a remote for local repository.
Edit file again, do a commit – see that nothing happens in the
remote.
Push changes to remote branch.
Visual Studio Code
Advanced code editor (similar – Sublime, Atom)
Open source, free, by Microsoft
A lot of extensions – code snippets, language support
Integrates with GitHub
P.S. Totally not the same as Visual Studio IDE!
Personal experience
Started to work a lot with Team Foundation Server (centralized
version control system).
Currently working only with Git as it is much easier to work on
multiple features and allows code review policy enforced with pull
requests.
Demo
1. Create an empty folder, open it in Visual Studio Code
2. Create a new text file and add some text there
3. Initialize new Git repository through Visual Studio Code
4. Commit changes
Task
Part I
Find Youth Techclub in GitHub un fork web site
Do some minor changes and create a pull request
Part II
Create repository for own project
Create initial index.html and basic folder structure in local repository
and push code to GitHub
Task (2)
Part III
Create a repository in the GitHub and put code to it (or use already
created one).
Add a new member (that sits next to you) as a contributor and be a
contributor in some repository.
One contributor in repository must create 2 commits, second one
also must create 2 commits.
Both contributors must push commits to remote. What happens?
Task (3)
Part IV
Open folder created in Part II in Visual Studio Code.
Set up possiblity to push code to remote.
Set up storing credentials for Git in global store.
P.S. You will need Google for this 
What is next?
Date Focused on
TBD * Typescript basics
TBD Angular 2 basics & project development
TBD Project development
TBD Project development
TBD NodeJS basics & project development
* In about two weeks 
Next meetups
Closed for people who have participated in at least one open
meetup.
Same structure:
- First some theory and demo
- After that tasks to move the project forward
Expect to do a lot of Javascript 
Just a reminder
www.meetup.com -> great place to follow Youth Techclub
Your feedback about 3 open meetups is welcomed:
- 3 things that you did not like
- 3 things that you really liked
- What should we improve?
- Any suggestions?

More Related Content

PDF
git and github
PPTX
Introduction to Git and GitHub Part 1
PPTX
GitHub Basics - Derek Bable
PDF
Git Version Control System
PPTX
Github basics
PPTX
Git - Basic Crash Course
PPTX
Github
PPTX
Devops and git basics
git and github
Introduction to Git and GitHub Part 1
GitHub Basics - Derek Bable
Git Version Control System
Github basics
Git - Basic Crash Course
Github
Devops and git basics

What's hot (20)

PPTX
Intro to git and git hub
PPTX
Git 101 for Beginners
PPTX
PDF
Learning git
PPTX
Version control system and Git
PDF
Introduction to Git and Github
KEY
Git and GitHub
PDF
Git Series. Episode 3. Git Flow and Github-Flow
PDF
Gitlab ci, cncf.sk
PPTX
Git and GitHub
KEY
Introduction To Git
PDF
Git real slides
PPTX
Git One Day Training Notes
PDF
Github - Git Training Slides: Foundations
PDF
Github Case Study By Amil Ali
PPT
Introduction to Git
PDF
Git and git flow
PDF
Version Control & Git
PPTX
PPTX
Git and Github Session
Intro to git and git hub
Git 101 for Beginners
Learning git
Version control system and Git
Introduction to Git and Github
Git and GitHub
Git Series. Episode 3. Git Flow and Github-Flow
Gitlab ci, cncf.sk
Git and GitHub
Introduction To Git
Git real slides
Git One Day Training Notes
Github - Git Training Slides: Foundations
Github Case Study By Amil Ali
Introduction to Git
Git and git flow
Version Control & Git
Git and Github Session
Ad

Similar to Git hub visualstudiocode (20)

PDF
Getting started With GIT
PPTX
Introduction to git and Github
PPT
GIT By Sivakrishna
PPTX
database.pptx
PPTX
Git and Github.pptx
PPTX
Mini-training: Let’s Git It!
PDF
Brush up on using github
PPTX
Introduction to git hub
PPTX
Using Git to Organize Your Project
PDF
Advance workshop on git
PPTX
Github Session organized by GDG on campus SCOE.pptx
PDF
Git Tutorial A Comprehensive Guide for Beginners.pdf
PDF
Beginner Workshop for Student Developers - Tratech-presentation.pdf
PPTX
Git & GitLab
PPTX
Git & Github
PDF
August OpenNTF Webinar - Git and GitHub Explained
PDF
A Tutorial for GitHub.pdf
PDF
A Tutorial for GitHub.pdf
PPTX
Extra bit with git
PPTX
Git training (basic)
Getting started With GIT
Introduction to git and Github
GIT By Sivakrishna
database.pptx
Git and Github.pptx
Mini-training: Let’s Git It!
Brush up on using github
Introduction to git hub
Using Git to Organize Your Project
Advance workshop on git
Github Session organized by GDG on campus SCOE.pptx
Git Tutorial A Comprehensive Guide for Beginners.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdf
Git & GitLab
Git & Github
August OpenNTF Webinar - Git and GitHub Explained
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
Extra bit with git
Git training (basic)
Ad

Recently uploaded (20)

PDF
RMMM.pdf make it easy to upload and study
PDF
Insiders guide to clinical Medicine.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Institutional Correction lecture only . . .
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
Cell Structure & Organelles in detailed.
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
Pre independence Education in Inndia.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
master seminar digital applications in india
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
RMMM.pdf make it easy to upload and study
Insiders guide to clinical Medicine.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
VCE English Exam - Section C Student Revision Booklet
Anesthesia in Laparoscopic Surgery in India
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Microbial disease of the cardiovascular and lymphatic systems
Institutional Correction lecture only . . .
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Cell Structure & Organelles in detailed.
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Pre independence Education in Inndia.pdf
Final Presentation General Medicine 03-08-2024.pptx
master seminar digital applications in india
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
O5-L3 Freight Transport Ops (International) V1.pdf

Git hub visualstudiocode

  • 1. Git & Visual Studio Code Youth Techclub 06.04.2016
  • 2. Content What is Git? Why do we need it? What are the core principles behind Git? What is GitHub and how to work with it? What is Visual Studio Code and how it integrates with GitHub? How to work with Visual Studio Code extentions?
  • 3. Agenda Overview of Git and principles behind it Demo of main Git commands Overview of GitHub Demo of main functionality in GitHub Demo of Visual Studio Code Task
  • 4. What us Git? Free and open source distributed version control system. Popular with open source projects. Allows us to create local repositories based on remote repository and later on push changes from local to remote.
  • 6. Some basic Git terminology Branch – a specific version of code Master branch – initial branch in repository You can branches both locally and remotely.
  • 8. File status in action git init – creates a repository in folder git status – checks the current status of repository git add – adds file to repository, stages the changes git commit – commits changes in the branch Comments: - Each commit is identified by hash number - .git folder contains configuration information about repository
  • 9. More on branching git branch <branchname> - creates a new local branch git checkout <brachname> - makes the specified branch as active
  • 12. More commands git push – pushes all commits to the remote branch git fetch - check how far behind local branch is git pull – take all commits that are in the remote branch git checkout – checkout specific branch in local repository git merge – merge changes from one branch into another one P.S. We will check these when we set up GitHub
  • 13. GitHub Web-based Git repository hosting service. Communities can host open source projects. You can search for projects to participate. Private repositories are possible (of course, you will have to pay for them )
  • 14. GitHub registration www.github.com Use university email to register with GitHub education pack to get private repositories too.
  • 15. Demo Create a new empty repository. Add created repository as a remote for local repository. Edit file again, do a commit – see that nothing happens in the remote. Push changes to remote branch.
  • 16. Visual Studio Code Advanced code editor (similar – Sublime, Atom) Open source, free, by Microsoft A lot of extensions – code snippets, language support Integrates with GitHub P.S. Totally not the same as Visual Studio IDE!
  • 17. Personal experience Started to work a lot with Team Foundation Server (centralized version control system). Currently working only with Git as it is much easier to work on multiple features and allows code review policy enforced with pull requests.
  • 18. Demo 1. Create an empty folder, open it in Visual Studio Code 2. Create a new text file and add some text there 3. Initialize new Git repository through Visual Studio Code 4. Commit changes
  • 19. Task Part I Find Youth Techclub in GitHub un fork web site Do some minor changes and create a pull request Part II Create repository for own project Create initial index.html and basic folder structure in local repository and push code to GitHub
  • 20. Task (2) Part III Create a repository in the GitHub and put code to it (or use already created one). Add a new member (that sits next to you) as a contributor and be a contributor in some repository. One contributor in repository must create 2 commits, second one also must create 2 commits. Both contributors must push commits to remote. What happens?
  • 21. Task (3) Part IV Open folder created in Part II in Visual Studio Code. Set up possiblity to push code to remote. Set up storing credentials for Git in global store. P.S. You will need Google for this 
  • 22. What is next? Date Focused on TBD * Typescript basics TBD Angular 2 basics & project development TBD Project development TBD Project development TBD NodeJS basics & project development * In about two weeks 
  • 23. Next meetups Closed for people who have participated in at least one open meetup. Same structure: - First some theory and demo - After that tasks to move the project forward Expect to do a lot of Javascript 
  • 24. Just a reminder www.meetup.com -> great place to follow Youth Techclub Your feedback about 3 open meetups is welcomed: - 3 things that you did not like - 3 things that you really liked - What should we improve? - Any suggestions?