Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating Branches in Android Studio

I am new to Android Studio. I am wondering if I could create different branches to run my application. Likewise for example, if there is any possibility to have same copy of application but the difference would be just that ,one would run the production app and the other branch would run the test app.

So please suggest some method if available, to create branches or tags in Android Studio.

like image 398
lisa Avatar asked Dec 28 '25 19:12

lisa


1 Answers

For this I would recoment to use gitflow here is an explanation image from nvie.com.

gitflow explanation

You can find the details in the link above. In short you use it to maintain features independed. You work on the development branch and your stable version is the master branch. So you can add fixes for the stable version without getting issues while fixing bugs with committed changes.

Back to your question how to add a branch in Android Studio click on the lower right edge in Android Studio and create that branch you want to:

check here and there

If you need more information write a comment.

like image 80
rekire Avatar answered Dec 30 '25 09:12

rekire



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!