Share via


Visual Studio Step-by-step: How to Create a new repository on GitHub

Introduction

GitHub is a Web-based Git repository hosting service. It offers all of the distributed revision control and source code management (SCM) functionality of Git as well as adding its own features.

Many developer Create any application/Project on own system and they want to Backup of that Project. But Developer create many folder into the subfolder create for save Project and Backup, In this situation he forget and difficult to search, where was Project and where was Backup file, who do not know. This method used for system crash and other Stage. It will not lose your Project/Application.

Steps

Creating an account

https://1.bp.blogspot.com/-_icEuDYsrb4/VqpJfvkJZQI/AAAAAAAAAXE/idhl576SQW8/s400/1.PNG

 

After the click on the Create an Account than as shown of figure.

https://1.bp.blogspot.com/-wuYZpD3bNUw/VqpXh-wbZcI/AAAAAAAAAXU/8jG6blIqk0A/s400/2.PNG

New repository

When you Click on the New Repository

 

https://4.bp.blogspot.com/-zdS9424h5gM/VqpXtM1hiYI/AAAAAAAAAXc/kZTBngrOCfg/s400/3.PNG

 

E-mail Validation

Check The Email Address For Verification.

 

https://2.bp.blogspot.com/-GNmrG3TBZQ0/VqpX6KnH-YI/AAAAAAAAAXk/rhAL8XXoqgE/s400/4.PNG

 

After the verification than Click on again New Repository and Give the Repository Name Example:- Basic Application and Check The Public If you want Free other Private pay the amount. and click the Create Repository Button.

 

https://4.bp.blogspot.com/-37NYr_Rx0DQ/VqpYJTb3mMI/AAAAAAAAAXs/Ssu3D9-07Oo/s400/5.PNG

 

HTTP SSH path

HTTP SHH path with the extension .git as show on figure.

 

https://2.bp.blogspot.com/-ekr8hT03AtI/VqpY-kNbTQI/AAAAAAAAAX4/4FqGP-ySb-k/s400/6.PNG

 

Create new project on VS

Create a New Project on your Visual Studio. Check on Create directory for solution and Add to source control. Than Ok

 

https://2.bp.blogspot.com/-IhvMjXLTNZ8/VqpZ-yWlGlI/AAAAAAAAAYA/ENjJxvR55Gw/s400/7.PNG

 

After the Ok Button than Check on the git and click Ok button.

 

https://2.bp.blogspot.com/-UY6tUL0MNjg/VqpapkUNdqI/AAAAAAAAAYI/-hBRv22_Rc8/s400/8.PNG

 

Both Method for Team Explorer and Click on the Connect with GitHub.

https://1.bp.blogspot.com/-8mUBA6THWb0/VqpbGGQwe4I/AAAAAAAAAYQ/_8xuVOEhiWU/s400/9.PNG

 

Enter logon

Enter the Username/E-mail address then click on Login.

 

https://3.bp.blogspot.com/-QQlxoNAgxF0/Vqpb2yO3fUI/AAAAAAAAAYY/NFqNyIWKnAs/s400/10.PNG

 

After the Login than Click on Clone for give the project Path from you System.

 

https://3.bp.blogspot.com/-Pwjb4xk2EVY/VqpcgdhQmMI/AAAAAAAAAYk/Epwh4OLHpVU/s400/After%2Bthe%2BLogin.PNG

 

Click on the Browser and give the Project Path.

 

https://1.bp.blogspot.com/-7h-jM1omxwU/VqpdAJr0mEI/AAAAAAAAAYs/-S0WAuyhWBA/s400/11.PNG

 

As shown on figure for Path. Than ok and Click the Clone Button.

 

https://3.bp.blogspot.com/-id-MM1hTtbo/VqpeJ_EVwII/AAAAAAAAAY4/oND1FbGt80s/s400/project%2Bpath.PNG

 

After the Press of Button on Clone your application has been successfully Cloned. As show on figure.

https://3.bp.blogspot.com/-Npgz5NY-348/Vqpe_s92pQI/AAAAAAAAAZA/5UN7ODYUMCQ/s400/12.PNG

Source control

Next Right Click on the Project go to the Source Control and Click on the Commit. As show on figure.

 

https://4.bp.blogspot.com/-xcnybs9G5uA/VqpfpXfrUWI/AAAAAAAAAZI/pO4t49lHD54/s400/13.PNG

Commit

Write the Comment for Commit message. This is Required with comments it will be not Commit. as shown on figure.

 

https://3.bp.blogspot.com/-nskl7wXGRsQ/Vqpgb4OFsyI/AAAAAAAAAZQ/6XVg9fFmiKE/s400/14.PNG

 

After the Complete Comment and Click the Commit button. You click on the Sync as show on figure.

 

https://1.bp.blogspot.com/-whXs9ACWT5k/Vqpg9vSus0I/AAAAAAAAAZY/eyJBLlGONHc/s400/15.PNG

 

Sync

when you click on the Sync, so than next will be show on your team Explorer. Enter the Path of GitHub for the Publish to Remote Repository. and click on the publish,

 

https://3.bp.blogspot.com/-ccPrs21OxaQ/VqphlLXzUaI/AAAAAAAAAZg/J35MPJlaXoY/s400/16.PNG

 

Copy the HTTP SSH URL as shown on figure.

 

https://2.bp.blogspot.com/-hmpytMJa2M8/VqpitU01H4I/AAAAAAAAAZo/8pD22eH0njA/s400/18.PNG

 

And paste the Visual Studio Publish to Remote Repository. Than click on the Publish Next screen

 

https://2.bp.blogspot.com/-M9Ue4ZJMJhA/VqpjQA2IjVI/AAAAAAAAAZw/0LcEGtmni4w/s400/19.PNG

 

After the Click the Publish the message will show " The origin remote has been added and the current branch has been published". as shown on figure.

 

https://2.bp.blogspot.com/-RigoIdQ-z-o/VqpkHTs_UMI/AAAAAAAAAaA/aUkErYkQ-4c/s400/20.PNG

 

 

Click on the View. or Refresh the GitHub Page.

 

https://4.bp.blogspot.com/-IrXpOpRSGeo/VqpknE8Q49I/AAAAAAAAAaI/i67OW0knLoE/s400/21.PNG

 

After the View or Refresh the page you will see Repository is created with time , Comment and Project Name. as Shown on figure.

 

https://1.bp.blogspot.com/-A-vYi7Jff8s/VqplT6WGRMI/AAAAAAAAAaQ/wWukxA3gvC4/s400/22.PNG