git, github, azure and visual studio
DESCRIPTION
Going from a Git local repository to a published web site on Azure passing through GitHUb and Visual StudioTRANSCRIPT
![Page 1: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/1.jpg)
Git, GitHub, Azure and Visual Studio
Salvatore Sorrentino
![Page 3: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/3.jpg)
A wonderful console command
![Page 4: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/4.jpg)
A not so great UI (an invitation to use the console)
![Page 5: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/5.jpg)
git init
![Page 6: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/6.jpg)
Add and commit
![Page 7: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/7.jpg)
Create a new web site on the Azure portal
![Page 8: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/8.jpg)
Set up deployment from source control
![Page 9: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/9.jpg)
The Git Archive on Azure is ready
![Page 10: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/10.jpg)
The push on Azure
git remote add azure https://theaddressgivenbyazure.azurewebsites.net
git push azure master
![Page 11: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/11.jpg)
The push was alright!
![Page 12: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/12.jpg)
Azure notification
![Page 13: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/13.jpg)
Example: download Bootstrap code
![Page 14: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/14.jpg)
Copy Bootstrap archive on our repository and push again
git add css/*
git add fonts/*
git add js/*
git commit –m «Adding bootstrap libraries»
git push azure master
![Page 15: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/15.jpg)
Push Again on Azure
![Page 16: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/16.jpg)
Azure Notification
![Page 18: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/18.jpg)
Let’s use Github (create a repository)
![Page 19: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/19.jpg)
Clone the Github repository on our hard drive
![Page 20: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/20.jpg)
Copy all the files created in our previous example and push them on Github
![Page 21: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/21.jpg)
Everything is on GitHub now
![Page 22: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/22.jpg)
Go Back to Azure and create a new site
![Page 23: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/23.jpg)
GitHub asks for a confirm…
![Page 24: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/24.jpg)
Azure asks for the repository to clone
![Page 25: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/25.jpg)
Azure extracts the code from GitHub
![Page 26: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/26.jpg)
Azure notifies everything is ok
![Page 27: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/27.jpg)
The Magic…
Make a change in a file belonging to your local repository
Push it to Github
The modification will be automatically pushed to Azure
![Page 28: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/28.jpg)
Visual Studio: clone the code
![Page 29: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/29.jpg)
Visual Studio: Push the modifications
![Page 30: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/30.jpg)
Everything is synchronized
![Page 31: Git, gitHub, Azure and Visual Studio](https://reader035.vdocuments.net/reader035/viewer/2022062303/554fb837b4c90542018b4618/html5/thumbnails/31.jpg)
Have fun!
http://www.salvatoresorrentino.it
http://datascienceandprogramming.azurewebsites.net/
http://dotnetcampania.org/blogs/salvatore/