Showing posts with label Git. Show all posts
Showing posts with label Git. Show all posts

Monday, August 8, 2016

Working with Github

Github is most popular  free project hosting site. You can git repository and upload your project with following steps.

  1.   Create Project repository in  in Github and copy the repository http URL 
  2.    Install git client in you local machine.
  3.    Goto directory where you want to checkout  the code. Right click on directory and select 'Git Bash here' from menu. It will open git bash console
  4. In git console run git clone command.  
    $ git clone https://github.com/sujanctg2005/oracle.git
  5.  Change directory to  oracle
    $ cd oracle/
  6. Check  git status
    $ git status
  7. Modify the files you want to push in git hub
  8. Add modified files in local git repository
    $ git add *
  9. Commit modified files in local git repository
    $ git status
    $ git commit -m 'comments' *
  10. Now you can push modified files in git repository
    $ git status
    $ git push https://github.com/sujanctg2005/oracle.git

    This push command will prompt for Github user-name and password. You can verify the push just browsing that git repository in online.