Github Installation

Hi Friends,

After long time, I came to my blog and thought to share something new. So i picked up GitHub installation and How to use GitHub?

Its very easy to use GitHub All you need to do is,
Open github.com -> Sign up your account
Here you can create your own repository and you can share the link with your colleagues.

How to install and use Git in Windows ===================================== 1. Download git from http://git-scm.com/downloads 2. Right Click on downloaded installer 3. Click ‘Run as Administrator’ 4. Install using default settings except for “Adjusting your Path Environment” Choose “Use Git from the Windows Command Prompt” 5. Start a Windows Command Prompt 6. CD to a new directory where you want to store your local repository 7. run “git clone <repository path>” e.g. “git clone https://github.com/YOUR_REPOSITORY_PATH” 8. Enter your github username and password 9. You can now make changes to the local repository and run any git command as and when it’s required.

 
Few commands in github are : ============================== git pull - command to pull the latest code git branch - to list the branches where the current branch will be highlighted using asterisk git push - command to push the code. Before you push the code , please make sure u pull the code. For pushing your code there are four steps. git status -> To check which all files are modified git add . -> to add all the files which are changed ( . indicates add all files ) git commit -am "Your commit message ie what modifications u have made" git push

To check your branch or to change your branch,

git checkout <branch_name> - You can change your branch 
git branch - To check your current branch

Comments

Popular posts from this blog

Ghostscript Installation and Configuration in Windows 7

Joomla - Get user id