GitHub












Online file management system.
It mostly used for computer code.
It’s open-source software world best projects.

Built by contributions of developers and it is powerful platform for developers.

Steps:
       I.            
1. Installing Git for linux
            sudo apt-get install git
2.Configuring GitHub
           git config --global user.name "user_name"
           git config --global user.email "email_id"
3.Creating a local responsitory
           git init html
4.Adding repository files to an index
           git add index.html or git add .  or  git add *
5.Committing changes made to the index
           git commit -m "some_message"
6.Creating a repository on GitHub
           git remote add origin https://github.com/user_name/html.git
7.Pushing files in local repository to GitHub repository
       git push -u origin master
8.To Clone an Existing Repository
           git clone https://github.com/user_name/repo_name.git
9.To pull changes from Github Repository
          git pull
    incase if u want to overwrite the local changes
            git reset --hard HEAD
            git pull    


What is github and why should I use it 
GitHub is a Git repository hosting service, but it adds many of its own features.












Comments