Python for Entrepreneurs Transcripts
Chapter: Digging Further into Git
Lecture: Desktop Apps for Git: Sourcetree

Login or purchase this course to watch this video and the rest of the course contents.
0:00 All these git commands can get a bit confusing, so it's helpful to have a user interface through a desktop application
0:07 to help you manage all of your changes in Git. In this video, we'll take a look at one of those desktop applications,
0:13 there are many of them out there but SourceTree, which is made by Atlassian, is one of the best.
0:18 We'll download, install, and set up SourceTree with our GitHub account, so we can get a little bit of extra help managing our git repositories.
0:24 The first step to get SourceTree is to get a sourcetreeapp.com and download it for Mac,
0:29 or whichever operating system that you are working on, once that's saved, we can open it up, once it's extracted install it,
0:36 either by dropping it to applications or through the installer if you're on Windows.
0:42 Once it's installed, we can open it up, and if you get a confirmation, just click open,
0:47 now we do need to use an Atlasian account in order to log in here, but we're going to connect this to GitHub instead.
0:54 So, if you don't have an Atlassian account, go to atllasian.com and sign up for one, just a free account, once you've got that in place,
1:02 we'll say "use an existing account" and we can log in, OK, now we're registered,
1:07 and we can set it up, click GitHub and we're going to use the OAuth authentication,
1:14 we'll connect our account, if you enabled too factor authentication,
1:18 you'll need to get the verification code, punch that in and you should be verified, well to give it access to some of our account,
1:25 including both public and private repositories, and we'll have it generate an SSH key for us.
1:33 Click "Copy to Clipboard", awesome, so now it's listing all the repositories
1:39 that we have got associated with our account, and this may take a few minutes, once the list is populated, we can click on a specific repository,
1:48 and we can also search, so I'll search for "fullstackPython" and we can specify where we want to clone that repository.
1:56 For now I'll just put this under my home directory. Since I already have most of my repositories on my local system, instead of cloning one,
2:03 I am going to just add it based off of the files that are in my local file system, now there is a few ways we could do this,
2:09 one way is just to drag and drop into the tool from the finder or we can click "Scan a directory", alright, now I've added Full Stack Python,
2:18 this allows us to work with all of our Git history within a nice graphical user interface instead of just using the command line.
2:25 To be honest, I don't really use GUI tools all that much, I tend to stay right on the command line and you can do everything you need to do
2:31 on the command line, but especially when you're learning all these commands together,
2:35 it can be helpful to have this tool and essentially it's going to run the commands behind the scenes for you. I won't go into all the features,
2:42 that SourceTree offers but I will show you that you can compare various commits
2:46 you can see what's changed, in each of those commits and just in general, as you start to add commits to your project for your business,
2:53 there is a nice way to go through everything just in case you've introduced defects
2:56 and you need to fix them, go back and see what's changed, those sorts of tasks. That is a real quick overview, of how you can sue GUI tools,
3:03 like SourceTree in order to manage and view all the changes you're making to your projects through Git.


Talk Python's Mastodon Michael Kennedy's Mastodon