Quantcast
Viewing all articles
Browse latest Browse all 369

How to use Desktop GitHub Client – Clone and Update Codes

GitHub is a web-based version control platform to manage the codes. GitHub continuously offers many tools to manage the codes effectively. Desktop GitHub Client is one of the tools which can be used to manage the code from your laptop/desktop effectively. The desktop client can be installed with normal user privileges. You could also upload the codes directly using GitHub web-GUI

Installing GitHub Desktop:

1. Download GitHub Desktop.

Image may be NSFW.
Clik here to view.
GitHub Desktop - Download
GitHub Desktop – Download

2. Click on the downloaded executable to install it. It doesn’t require admin privileges.

Image may be NSFW.
Clik here to view.

3. Once the GitHub is installed, you will get the welcome page like below.

Image may be NSFW.
Clik here to view.
Welcome GitHub-Desktop

4. You could also directly logging in to existing GitHub account to manage the repository. I have selected “skip to continue” to manually manage the repository. Just enter your name and email address to configure locally

Image may be NSFW.
Clik here to view.
GitHub Desktop - Configure Git
GitHub Desktop – Configure Git

5. Click Finish complete the local configuration. You could also opt out sending periodic usage statistics to GitHub.

Image may be NSFW.
Clik here to view.
Finish – configure GitHub

Cloning Git Repository:

6. Copy the GitHub repository URL from webpage.

Image may be NSFW.
Clik here to view.
GitHub Repository web URL
GitHub Repository web URL

7. In Desktop GitHub, click on “Clone a repository from the Internet”

Image may be NSFW.
Clik here to view.
Desktop GitHub - Clone Repo
Desktop GitHub – Clone Repo

8. Enter the copied repo URL and select the local directory path. Click on clone to pull the repository to local path.

Image may be NSFW.
Clik here to view.
GitHub Desktop - Clone a repository
GitHub Desktop – Clone a repository

9. Once the repository is cloned, you could see the following screen. It just displays that, we haven’t made any local changes so far. Click on “Show in explorer” to see the files and folders on the repo.

Image may be NSFW.
Clik here to view.
Cloned Repository - GitHub Desktop
Cloned Repository – GitHub Desktop

10. Let’s make some changes on the README.MD file to test.

Image may be NSFW.
Clik here to view.
Repository Update - GitHub Desktop
Repository Update – GitHub Desktop

11. Switch to GitHub Desktop. It will automatically detect the code changes. You could also copy directories and files to that path to upload to GitHub repository.

Image may be NSFW.
Clik here to view.
Changes detected by GitHub Desktop
Changes detected by GitHub Desktop

12. Add meaningful comments to commit the changes. Click on “Commit to Master

Image may be NSFW.
Clik here to view.
Commit to Master branch
Commit to Master branch

13. Push the changes to the remote origin.

Image may be NSFW.
Clik here to view.
Push to the remote origin
Push to the remote origin

14. You need to pass the valid credentials to authenticate the repo. Click on “Save and retry” to push the changes to git repository.

Image may be NSFW.
Clik here to view.
Authenticate GitHub to push the changes
Authenticate GitHub to push the changes

15. Validate the changes in GitHub page.

Image may be NSFW.
Clik here to view.
Validate the code changes in GitHub
Validate the code changes in GitHub

Using GitHub Desktop client, you can easily manage the codes locally. You could also make bulk code updates in few clicks irrespective of the number of directories and files.

The post How to use Desktop GitHub Client – Clone and Update Codes appeared first on UnixArena.


Viewing all articles
Browse latest Browse all 369

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>