Featured Post

Working with Git Repositories Using GitHub Desktop

Using GitHub Desktop

Clone GitHub repository

  1. Open the GitHub Desktop application. In the file menu select clone repository.
  2. The popup modal displays the list of repositories accessible in your GitHub.
  3. Select the repository and click clone.
  4. The desktop application gives you an option to open the cloned repository in VS Code.
  5. Read More.

Pull GitHub Repository (GitHub Desktop)

  1. Inside GitHub desktop to pull the changes from the origin, we set the "Current repository" to GitHub repository we want to pull changes from.
  2. Then we set the "Current branch" to "master" or else set the current branch to any specific branch we want to pull the changes from.
  3. After selecting the appropriate "Current repository" and "Current branch" we now click “Fetch Origin”.
  4. Then after the Origin Fetch has completed we go into the "repository" option in the main menu and click "Pull". This will pull the new commits done on your selected branch. And it will show you an option to open the repository in VS Code.
  5. Read More.
Git Repositories

Creating and Publish a new branch (GitHub Desktop)

  1. After cloning the repository using GitHub Desktop, we go into the “Branch” option present on the main menu.
  2. We select “New Branch”.
  3. The new branch should be based on the “master branch” and you can now create the branch. The created branch can now be published on GitHub be clicking “Publish Origin” and can be opened in VS Code.
  4. Read More.

Commit changes (GitHub Desktop)

  1. Inside GitHub Desktop after making sure your current repository is same as repository you made changes to in VS Code, on the left sidebar you will be able to see all the file changes made by you in VS Code.
  2. You can select the files you want to commit. In most of the cases, we select all the files in the sidebar.
  3. We now enter our commit message and description and click Commit to "name of your branch is shown here".
  4. Read More

Push GitHub Repository (GitHub Desktop)

  1. After you have committed your changes we now push them to the remote repository. Therefore, we select the "repository" option in the main menu and click "Push". This will push your commits to GitHub.
  2. Read More.

Comments