How to Upload or Push Android Studio Project on Github | Android Studio Code to GITHUB

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Namaste friends welcome back to P in this video I'm going to show you guys how you can publicly save your projects in GitHub repository it is a simple and basic project all you have to do is enable a few buttons inside Android studio and push the code inside repository that you have created so let's get started first open your browser and open this website git is usually used to handle projects from small scale to large scale projects git is used for Version Control and what will happen is if you create application you can save those versions of application then further you go on upgrading or it can be used to download the previous version that you have save download the git from website or the link is given in the description now I have downloaded and installed it in my PC it is a basic procedure you can do it on your own once you install git next you have to do is open the GitHub if you don't have an account you can simply sign up easily once you have created an account we have to create a new repository so just hit on new new repository and give the name to the repository so my code is basically of send SMS so I have created a send SMS earlier and the link is given in the description of the video so I will give the name of the repository as send SMS so once you have given the name you can add the description to the code it is optional it is left to you you can either add or left it as it is and keep it public or private so I will go with public and click on create repository so empty project with a name send SMS has been created go to studio and you have to check it does not have any errors and it is working perfectly fine go to VCS and click on enable Version Control integration and here select a version control system to associate associate with send SMS so here you need to select the option get and click on okay and now here you can see with two more buttons and one is to up update the project and one more is to commit and one is to push your project all files got red here because all these are not added in the git as you can see here all files are turned into red color why because they are not added inside the git now go to project click on project and here click right and you will see a option here G now there are three things that which we are going to do first one is add the file to the git and second one is commit the directory and third we are going to push the code inside the repository so first we will add click on ADD and you can see here all the files have turned into green color and next again click on right button go to get option and now you need to commit the directory so click on Commit directory commit means something like uh you commit your project here and you go ahead and add more changes in your code and due to some errors the code does not work anymore so what we will do is you will go back to the commit you can download all the files there and start again from this step so here you can name the version of commit so I will give it as final commit so as it is my final version I will give it as final commit press on Commit so it will show you some basic warnings and errors here warnings are hardcoded text but still your code will work fine you can ignore this there is a difference between warnings and errors if you have any errors don't go ahead warnings are okay you can go ahead so just click on Commit anyway so once commit is done last thing you have to do is we have to push the code into repository in GitHub for that right click go to git option and here you will find the push button so click on push and click on Define remote it will ask for URL of the repository so it will ask ask for the URL of the repository go back to the GitHub copy this location open your Android studio and paste to the location click on okay so as you can see with the name final commit and all the files are loaded click on push so as you can see the message pushed Master to New Branch origin so the code is successfully pushed to the repository in GitHub so go back to the GitHub refresh the page so here is your code with one commit so as you can see it is showing one commit 2 minutes ago with the final commit so you can also download the code here you can either open it from GitHub desktop or you can open it in the zip file so this is the basic procedure to add your project on GitHub so this was all about today's video how to add your project into the GitHub so if you are happy with my video please give the like to the video and subscribe my channel thank you
Info
Channel: Pavi_TechZone
Views: 1,583
Rating: undefined out of 5
Keywords: androidstudio, github, codingtutorials, versioncontrol, androiddev, githubtips, codeupload, programmingtips, techtutorial, development, opensource, githubprojects, codingcommunity, techhelp, softwareengineering
Id: TT5zJxHJ1PM
Channel Id: undefined
Length: 6min 55sec (415 seconds)
Published: Sun Mar 24 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.