A step-by-step guide to managing and organizing your code on GitHub using GitHub Desktop.
- Step 1: Download and Login to GitHub Desktop
- Step 2: Clone Your Repository
- Step 3: Organize Your Code
Download GitHub Desktop for Windows from the official website and sign in with your GitHub account. For Linux users, you can follow this guide to install GitHub Desktop on Ubuntu.
Cloning creates a local copy of your remote repository so you can edit files directly on your computer.
2.1. In GitHub Desktop, choose Clone a repository from the Internet.
2.2. Select the repository you want to clone, choose a local path, then click Clone.
Fetch — Check for new changes from the remote repository (GitHub) without modifying your local files.
Pull — Download the changes from the remote repository and merge them into your current branch.
3.1. Open the repository folder in File Explorer using the Show in Explorer option.
3.2. Create a new folder to organize your code by topic or category.
3.3. Cut the code files you want to move.
3.4. Paste them into the new folder.
3.5. Back in GitHub Desktop, enter a Commit Message describing your changes, then click Commit to main.
Note: A commit message is required. For example:
"update leetcode".
3.6. Click Push origin to send your local commits to the remote repository on GitHub.
3.7. Press F5 to refresh your GitHub page. The new folder should now appear in your repository.
Have fun coding!












