
Now if we have already made your commit public then you will have to create a new commit which will revert the changes you made in your. Case 2: Undo a commit from the public repository. The File Revisions popup will show every commit related to that file, from the beginning. commit 1: First commit //undo the second commit, now head is at first or previous commit. We can write some code finally! On the next post. Right-click on the file, choose Git -> Compare with. Right click on your project directory (app)→ Git→ Commit Directory→ Commit Message→ Commit and Push→ Commit→ Name and Email→ Set and Commit→ Push All right! Now our project is in a web repository we are ready to improve the app.

Right click on your project directory (app)→ Git→ Add 7 Commit the changes VCS→ Import into Version Control→ Share Project on GitHub→ Share A new repository was created. VCS → Enable Version Control Integration→ Git 2 Download and install GitHub Desktop 3 Inform Android Studio about Git executable locationįile→ Settings→ Version Control→ Git→ Path to Git executable If you use Windows, your path should be something like that: C:UsersXXXXXAppDataLocalGitHubPortableGit_XXXXXcmdgit.exe 4 Connect Android Studio to your GitHub accountįile→ Settings→ Version Control→ GitHub Host: Login: … Password: … 5 Share your project Do you know what I’m talking about, right? So let’s go! 1 Enable version control integration in Android Studio We need to fork the repository in which we want to create pull requests. After that you will be able to perform commits, updates, adds, merges, checkouts etc. So here we will see how to integrate Android Studio to your GitHub account. Before adding new features to that, it’s a good practice to integrate the project to a version control system such as Subversion (SVN), Mercurial or Git.

We already have created and run our first app.
