Skip to main content

Posts

Showing posts with the label How to checkout git repository to local system

How to checkout github repository in local and make changes

This blog is about checking out your code from git hub and how you make changes then add those changes back to git hub. Below are the steps to checkout the project/codes in local system. 1. How to Checkout project/code from git hub      git clone <git_repository_url>      The above code will always checkout the main branch (master branch)      Inorder to checkout any other branch use below command      git clone -b <branchName> <git_repository_url> 2. Make changes in your project      do changes as per your need & requirement 3. How to add new file in local git repository      git add . 4. commit your changes      git commit - m "your commit message" 5. Push your changes to github      git push -u origin master      if you are not using master branch then you need to use below command     git push --set-upstream ori...