Andriod For Beginner

GitHub and Other Resources

In this chapter we see how to handle the resources like Github , stack overflow to become a professional. Let’s see one by one and how to handle that.

Git :

Version Control System ( Keep reading and this will make sense towards the end ). Let’s say you have a project you want to work on.

Even for little piece of code, you will have a copy in your PC and your friend will have one in his PC.

Let’s say you change the code, now at this point your friend wouldn’t know the changes you have made and vice versa.

This is where the Git magic comes.

● Git lets you save your code online.
● Git allow the developers of project to see what changes have done by other developers.
● And it allow you to discuss the issues in your code with other developer.

Getting Started:

First sign up from Github and next you go and create a repository by following this link.

So now you have created a repository online and you have installed git on your PC. Until now they are not linked to each other. Another way is that we can download the “Github desktop” and install in our system and try to add the project to repo and commit that . It automatically create a .git and will push to github.

Repository is a directory or storage space where your projects can live. Sometimes GitHub users shorten this to “repo.” It can be local to a folder on your computer, or it can be storage space on GitHub or another online host. You can keep code files, text files, image files, you name it, inside a repository.

Commit is an command that gives Git its power. When you commit, you are taking a “snapshot” of your repository at that point in time, giving you a checkpoint to which you can revaluate or restore your project to any previous state.

Git Commands :

git init: Initialises a new Git repository. Until you run this command inside a repository or directory, it’s just a regular folder. Only after you input this does it accept further Git commands.

git config: Short for “configure,” this is most useful when you’re setting up Git for the first time.

git help: Forgot a command? Type this into the command line to bring up the 21 most common git commands. You can also be more specific and type “git help init” or another term to figure out how to use and configure a specific git command.

git status: Check the status of your repository. See which files are inside it, which changes still need to be committed, and which branch of the repository you’re currently working on.

git add: This does not add new files to your repository. Instead, it brings new files to Git’s attention. After you add files, they’re included in Git’s “snapshots” of the repository.

git commit: Git’s most important command. After you make any sort of change, you input this in order to take a “snapshot” of the repository.

git branch: This command will let you build a new branch, or timeline of commits, of changes and file additions that are completely your own. Your title goes after the command. If you wanted a new branch called “cats,” you’d type git branch cats.

git checkout: Literally allows you to “check out” a repository that you are not currently inside. This is a navigational command that lets you move to the repository you want to check.

git merge: When you’re done working on a branch, you can merge your changes back to the master branch, which is visible to all collaborators.

git push: If you’re working on your local computer, and want your commits to be visible online on GitHub as well, you “push” the changes up to GitHub with this command.

git pull: If you’re working on your local computer and want the most up ­to ­date version of your repository to work with, you “pull” the changes down from GitHub with this command.

Stack Overflow :

First create a account in Stackoverflow. It is a nice programmer site, to clear the issues , doubt , wrong coding with other developers. After login, go to ask question ( if you have ).You can also answer for other question and for each perfect question and answer you will be up voted points.

This will help you when you go for other android Developer job. Your profile will attract people and you can also get more coding knowledge here.

Other type of resources:

But mostly we will use github to create any repo for our project for our project and also to make some change for our big process apps.

Please login to get access to the quiz
App Store Process (Prev Lesson)
(Next Lesson) Conclusion
Back to Andriod For Beginner
Inquire Now
close slider