You can download and install the latest version of Git for Windows from http://git-scm.com. It's a standard Windows installation process, but there are many options on Windows for integration with File Explorer, and enabling the use of Git from the Windows command prompt. After completing the installation process, you'll be able to use Android Studio's integration tools and both share and manage projects on Github.
- [Voiceover] As I described in another video, Android Studio has great integration with Git, one of the most popular version control systems, but you have to install Git on your computer in order to use it. To find out whether you have Git installed on your Windows computer, go to a Command Prompt and type Git--version. If you see this result indicating that Git isn't available, or if you have a very old version of Git, you should download and install the most recent version.
You can download Git for free from this website. On the home page you should see a link to download the Latest Source Release but when you click Downloads for Windows, you should start automatically downloading the most recent executable. I'll be using Git 2.7.2, the most recent release as of the time of this recording. I've actually already downloaded it to my desktop so I'll cancel that download and then close all of my other windows and I'll fire up the installer.
Initially you'll see a couple of security warnings and then a license agreement. Click past those and then you can indicate where you want to install Git. The default is under the Git directory under Program Files. I'll accept that and then I'll accept all of the other default options until I get to this screen. On this screen I'll check the option to use Git from the Windows Command Prompt. That will allow me to run Git from as many places as I want and then I'll continue clicking through and accept all of the other defaults and then the installation will be launched.
It'll take a few minutes for everything to be copied into place and for certain environment variables and registrations to be carried out. But then once the install is completed, you'll be able to test Git from your command line. Once the installation is done, you can uncheck the option to look at the Release Notes and click Finish. Then, to test your installation, once again go to a Command Prompt and type Git--version and if everything worked correctly, you should now see that Git is installed.
If you have any trouble with that, check your environment variables. Go to the Control Panel and type environment. Then click Edit the system environment variables, click the Environment Variables button, and check both your individual user path and your system path. Your system path should now include the directory where the Git executables are stored. If it's not there, you can try adding it manually.
So once you have Git installed on whichever operating system you're running, you're ready for the next step, configuring Git for use with Android Studio.
- Installing Android Studio on Mac and Windows
- Creating Android Studio projects
- Setting up the development environment, including HAXM and the new Android emulator
- Importing existing code into Android Studio projects
- Exploring the interface, including the editor and project windows
- Managing project builds and dependencies
- Creating new Java classes
- Refactoring code
- Using templates
- Using breakpoints and watch expressions
- Updating apps with Instant Run
- Using Git for version control
Skill Level Beginner
Q: This course was updated on 04/27/2017. What changed?
A: New videos were added that highlight the new features introduced in Android Studio 2.3. In addition, the following topic was updated: update apps with Instant Run.