0
Git, GitHub, Azure and Visual Studio
Salvatore Sorrentino
Install Git

http://git-scm.com/downloads
A wonderful console command
A not so great UI (an invitation to use the
console)
git init
Add and commit
Create a new web site on the Azure portal
Set up deployment from source control
The Git Archive on Azure is ready
The push on Azure

 git remote add azure https://theaddressgivenbyazure.azurewebsites.net
 git push azure master
The push was alright!
Azure notification
Example: download Bootstrap code
Copy Bootstrap archive on our repository
and push again

 git add css/*

 git add fonts/*
 git add js/*
 git commit –m...
Push Again on Azure
Azure Notification
The result…
http://provesugit.azurewebsites.net/
Let’s use Github (create a repository)
Clone the Github repository on our hard drive
Copy all the files created in our previous
example and push them on Github
Everything is on GitHub now
Go Back to Azure and create a new site
GitHub asks for a confirm…
Azure asks for the repository to clone
Azure extracts the code from GitHub
Azure notifies everything is ok
The Magic…

 Make a change in a file belonging to your local repository
 Push it to Github
 The modification will be au...
Visual Studio: clone the code
Visual Studio: Push the modifications
Everything is synchronized
Have fun!

 http://www.salvatoresorrentino.it

 http://datascienceandprogramming.azurewebsites.net/
 http://dotnetcampa...
Upcoming SlideShare
Loading in...5
×

Git, gitHub, Azure and Visual Studio

234

Published on

Going from a Git local repository to a published web site on Azure passing through GitHUb and Visual Studio

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
234
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Git, gitHub, Azure and Visual Studio"

  1. 1. Git, GitHub, Azure and Visual Studio Salvatore Sorrentino
  2. 2. Install Git http://git-scm.com/downloads
  3. 3. A wonderful console command
  4. 4. A not so great UI (an invitation to use the console)
  5. 5. git init
  6. 6. Add and commit
  7. 7. Create a new web site on the Azure portal
  8. 8. Set up deployment from source control
  9. 9. The Git Archive on Azure is ready
  10. 10. The push on Azure  git remote add azure https://theaddressgivenbyazure.azurewebsites.net  git push azure master
  11. 11. The push was alright!
  12. 12. Azure notification
  13. 13. Example: download Bootstrap code
  14. 14. 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
  15. 15. Push Again on Azure
  16. 16. Azure Notification
  17. 17. The result… http://provesugit.azurewebsites.net/
  18. 18. Let’s use Github (create a repository)
  19. 19. Clone the Github repository on our hard drive
  20. 20. Copy all the files created in our previous example and push them on Github
  21. 21. Everything is on GitHub now
  22. 22. Go Back to Azure and create a new site
  23. 23. GitHub asks for a confirm…
  24. 24. Azure asks for the repository to clone
  25. 25. Azure extracts the code from GitHub
  26. 26. Azure notifies everything is ok
  27. 27. 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
  28. 28. Visual Studio: clone the code
  29. 29. Visual Studio: Push the modifications
  30. 30. Everything is synchronized
  31. 31. Have fun!  http://www.salvatoresorrentino.it  http://datascienceandprogramming.azurewebsites.net/  http://dotnetcampania.org/blogs/salvatore/
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×