Creating a Repository in GitHub

  1. Sign Up with GitHub https://github.com/
    Read the guide https://guides.github.com/activities/hello-world/ https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control
  2. Download and Install the Desktop GitHub https://desktop.github.com/
  3. Create a Repository MyFirstProject on GitHub.com using + options
    Avoid spaces while creating the Repository
    Check the Initialize the repository with a README
    Choose Git Ignore –None/Windows
  4. Create/upload a text file to the GitHub using UI, Commit directly to the master branch
  5. Modify the above text file by adding a few lines of text and commit the changes to the master branch
    Check the changes are saved or not
  6. GitHub commands https://github.com/joshnh/Git-Commands

Cloning an existing Repository from GitHub Desktop

  1. Copy the URL from GitHub UI by clicking the clone or download button
  2. Clone the below repository into your Repository Using Import your Project to GitHub from + options https://github.com/jalatechnologies/HelloWorld.git
  3. Clone the same repository into your GitHub Desktop downloaded
  4. Create a Branch Branch-1 on GitHub Desktop and do some modification to the text file Check the changes are reflected on the GitHub origin/master repository
  5. Commit the changes to the Branch-1 on GitHub Desktop
    Check the changes are reflected on the GitHub origin/master repository
    Notice that there are NO local changes to be committed in GitHub Desktop
  6. Push the changes done in local branch to the origin/master using Push option from Repositories menu check the changes are saved to the origin/master, changes are not saved
  7. Notice that the branch Branch-1 in GitHub and a button to compare and Pull Request
  8. Create a Pull request by clicking the compare and Pull request
    Check the changes are not saved to origin/master
  9. Need to merge the changes into origin/master using Merge Pull Request

    Check all the changes done in Branch-1 are successfully saved to origin/master.
  10. The branch Branch-1 is no longer needed, So delete the branch Branch-1 Go to branches and delete the branches that are merged into origin/master