Member-only story
How to Use Git in Android Studio
Master your tool, master your craft

What’s Covered
In this piece, I’ll show you some basic functionalities for working with Git in Android Studio, including:
- Integrating Git into the project
- Setting up remote connections
- Staging and committing changes
- Pushing the changes to remote
- Fetching the changes from remote
- Working with branches
- Showing log history
Let’s get started!
Note: All the reference paths, options, names, configurations in this article are based on Android Studio on the Mac OS system. It may be slightly different on other systems like Windows or Linux, but the spirit will be the same.
Integrate Git into the project
Test whether Git is configured
In Android Studio, go to Android Studio > Preferences > Version Control > Git. Click Test to ensure that Git is configured properly in Android Studio.