Darryl A. J. Staflund wrote:Hi there,
I guess I don't understand what you're asking. Git is a revision control system so you're not going to run the code using git from the command line. You can commit or push the code from the command-line, but that's a git task that's better asked in a different forum.
If you are looking to run the application using the Android SDK from the command-line, I've never really done it but documentation on how to use Android SDK's commmand-line utilities are available on the web. You can, however, run the application from within Android Studio by importing the Gradle project and then running it. That really doesn't involve git though.
Good luck.
Darryl
Darryl, I found the solution, and you were inspiring to me. It is a kind of grey area cause lot of people use the inbuilt GIT GUI inside intelliJ
here it is.
basically you clone your project
$clone
blablabla@github.com
then you see the commits
$ git log
//and you see a list of commits
//then...
$ git checkout <hashcode you found from git log>//in my case the first commit>
then...
you just run the project( the green arrow or shift+f10) and automatically IntelliJ will load the current classes and will load the version you need!
when you are done with your previous commit you can revert to the final commit launching this command
$git checkout master
//and eventually check with git status, that the project is updated for educational purposes, but this step is not needed
so all in all you do not need to import any project, just working out the commands below and then run the project, and you will see the project directory populated with the current classes