Tuesday, May 2, 2017

GIT HUB


💥 GIT HUB



         First we must understand of git. Git is an open source version control system that was started by Linus Trovalds. 

                             when developers are creating something, they are making constant changes to the code & releasing new versions up to & after the first official release.
        This allows developers to easily collaborate as they can download a new version of the software make changes & upload the newest vision.  every developer can see these new changes download them & contribute.

💧 Repository

    It is a location where all the files for a particular project are stored.


💦 how to use GIT HUB.......


     1. install  git & create  a git hub account.

      2.   To create a new repository  

             💧   In the upper right corner, next to your avatar or identity icon +, click and then select New repository. 

            💧  Name your repository hello-world. 

            💧  Write a short description

            💧 Select Initialize this repository with a README.

 

    3. To create a new branch

               💧 Go to your new repository hello-world. 
               💧Click the drop down at the top of the file list that says branch: master
               💧 Type a branch name, readme-edits, into the new branch text box. 
               💧 Select the blue Create branch box or hit “Enter” on your keyboard.


 ðŸ’¥
  1. On your computer, move the file you'd like to upload to GitHub into the local directory that was created when you cloned the repository.
  2. Open Terminal.
  3. Change the current working directory to your local repository.
  4. Stage the file for commit to your local repository.
    git add .
    # Adds the file to your local repository and stages it for commit
    
  5. Commit the file that you've staged in your local repository.
    git commit -m "Add existing file" 
    # Commits the tracked changes and prepares them to be
     pushed to a remote repository.
    
  6. Push the changes in your local repository to GitHub.
    git push origin your-branch
    # Pushes the changes in your local repository up to the remote 
    repository you specified as the origin.
    


Link:https://guides.github.com/activities/hello-world/ feather details.

 

     

No comments:

Post a Comment