Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
33 views

1.GitHub Visual Studio Integration GuideLine

Uploaded by

casauchuals123
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

1.GitHub Visual Studio Integration GuideLine

Uploaded by

casauchuals123
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Visual Studio and GitHub

Integration Guideline
Author: Nguyen Van Sang
Date: Apr-2023
Content
1. Introduction
2. How to create a project?
3. Push a Project Codes into GitHub repository (project)
4. Clone project from GitHub repository (project)
1. Introduction
• This guideline show how to integrate Visual Studio 2022 with
GitHub repository via HTTPS method of GitHub
• This guideline based on
– Visual Studio 2022
– github.com version on 13/04/2023
3. How to create a repository? 1/3
• Step 1: Login into
GitHub.com then
click “New” on left
or “+” on top right
corner
3. How to create a repository? 2/3
• Step 2: Enter
“Repository
Name” the click Enter repository
“Create name here

repositrory”
3. How to create a repository? 3/3
• Step 3: Check and
copy HTTPS URL for
use in NetBeans

Copy URL to use in


NetBean
3. Push a project to GitHub Repository 1/2
• Step 1: Open the
project we need to
push into GitHub. This
project is not integrated
with GitHub
• Step 2: Click Git 
Create Git Repository

Notes: To push all files in a


project to GitHub repository, you
must ensure that the project or
branch is created and empty. The
project is not integrated with
GitHub repository
4. Push a project to GitHub Repository 2/2
• Step 3: Select GitHub
on the left menu
• Step 4: Click “Sign
in..” to sign in to
GitHub
• Step 5: Enter
“Repository Name”
Click here to loginto GitHub
• Step 6: Click “Create
and Push”

Note: uncheck private


repository if repository is Enter repository name here
public
4. Clone project from GitHub repository 1/8
• This step we can use when we need to get the whole project sources
from GitHub repository to develop codes then push the new codes
into GitHub
4. Clone project from GitHub repository 2/8
• Step 1: Click on Clone a
repository in start
windows of Visual Studio
Click here

• Note: If you are in Visual


Studio, you can follow in
the next slide
4. Clone project from GitLab repository 3/8
• If you are in Visual
Studio , click on
Git Clone a
repository
4. Clone project from GitHub repository 4/8
• Step 2: Click on
“GitHub”

Click here
4. Clone project from GitHub repository 5/8
• Step 3: Click
on “Sign in…”
to login GitHub Click here
4. Clone project from GitHub repository 6/8
• Step 4: Select
repository in the list
then click “Clone”

After that you can


modify source codes Select here
and push/pull source
to/from repository
4. Clone project from GitHub repository 7/8
• Step 5: Click on Git
Manage Branches
4. Clone project from GitHub repository 8/8
• Step 6: Select
remote/origin master
• Step 7: Open the solution
and project in right window
for source code editing
Note: Should select branch where
you store project source in remote Click here
repository
Summary
• How to integrate Visual Studio 2022 with GitHub for push or
pull codes to/from gitlab.com

You might also like