Changes

Jump to: navigation, search

Working with Github and Android Studio

1,417 bytes added, 13:30, 5 February 2015
no edit summary
== Github GitHub Commands ==
Github GitHub was designed to handle Linux like project. Hence making this a command line system (There is an UI system as well which will be discussed later)Download the following UI application for Github GitHub from the following website:https://windows.github.com/ Once installed open the application. On the left-hand side click on the options and change "Default Shell" to "Git Bash". To open Git Bash simply find the Git Shell application on you PC. once you have installed the GitHub UI. Here are some of the important commands for GitHub using Git Bash : *git init - Initializes a new Git repository.*git config -(configure) when setting up git for the first time.*git help - Displays the commands and what they do.*git status - Checks the status of your repository. Checks whats needs to be committed and what branch you are working on currently. *git add - Brings the files to git's attention. (It stages the files)*git commit - Once finalized the changes that have been made to the file/s. git commit will update the files that were changed or added.**The command for git commit is : git commit -m "message". The "message" is always required when committing a file to GitHub. *git branch - Allows you to add a new branch to work on.*git checkout - Allows you to check if the branches and Master are up to date. *git merge - Merges the current branch with master. '''BE CAREFUL WHEN DOING THIS! It is not as smart as you may think.'''*git push - Pushes files from your local computer to GitHub online so the changes can be viewed.*git pull - Pulls the latest file from GitHub online to your local computer. =How to make GitHub work, when working in a group=

Navigation menu