
(If you want to work on a repo from Bitbucket, select Bitbucket instead. Navigate to File > New > Project from Version Control > GitHub. You can easily work on any of your Android source code repository that is in a GitHub or Bitbucket account in Android Studio. You can always view your project's current branch in the bottom-right corner of Android Studio. gitignore.īy default, we're switched to the master branch. idea/ should not reach Git-so you should add it to. Note that this is the format used by all recent IntelliJ IDEA versions. This folder just contains project-specific settings. This is telling us about a file named vcs.xml inside the.

An initial HEAD file that references the HEAD of the master branch is also created. git directory with subdirectories for objects, refs/heads, refs/tags, and template files. Under the hood, Android Studio executes the Git command: git initĪs a reminder, here's what this command will do: This command creates an empty Git repository-basically a. Then select the top parent folder of your Android Studio Project.Ĭlick the OK button to initialize the project with Git. Integrating GitĪfter your Android Studio project has been set up, click the VCS menu, hover on the Import into Version Control menu, and select Create Git Repository. a basic understanding of the Git distributed version control systemįire up Android Studio and create a new project (you can name it GitApplicationDemo) with an empty activity called MainActivity.To be able to follow this tutorial, you'll need:

