Skip to content

Git Collaboration Desktop

Kautilya Reddy edited this page Nov 30, 2024 · 2 revisions

Download and Setup

Step 1: Download GitHub Desktop

Windows:

Download it from here

MacOS:

Download it from here

Linux:

Tested on Ubuntu Based Distributions ...

Step 1: Open Terminal and Set-Up Repositories

wget -qO - https://apt.packages.shiftkey.dev/gpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/shiftkey-packages.gpg > /dev/null

sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/shiftkey-packages.gpg] https://apt.packages.shiftkey.dev/ubuntu/ any main" > /etc/apt/sources.list.d/shiftkey-packages.list'

After the second command, there might be a prompt for a Password, DO NOT Hesistate if the password is not visible as or * or dots , its just how Linux works. and type in your your usual Linux Password :D

Step 2: Update Repositories and Install Github Desktop

sudo apt update
sudo apt install github-desktop

Step 2: Setup GitHub Desktop

Follow the Red Highlights for Step-by-Step

After Installing GitHub Desktop on your PC/Laptop, a welcome screen will pop up, now click on Sign in to GitHub.com . This should open a Browser Tab to Login, After Logging in (in the browser), you should be redirected automatically back the app, (if it doesn't, just switch back to the app manually )

!

Now, Make sure that the Use my GitHub account name and email address is checked and then click on Finish. !

Step 3: Clone Github Repository

Click on Clone a repository from the Internet... and then on URL ! Now add the url https://github.com/1412kauti/space_gripper.git and choose your preffered location to store the repository locally. Now hit Clone. !

Adding New Files to the Repository

Before making any Changes

Pull all the changes by clicking on Fetch Origin.

This step is super important, as sometimes there might be others making other changes either to the same file being edited or the directory.

!

Making the Changes

Open The folder that has been cloned and and either update the folder with a new file or by editing the text in any of the existing files. And then head back to the GitHub Desktop App.

All the Changes work like:

  1. Any Content being added in Green
  2. Any Content Removed or Renamed in Red

Committing and Pushing the Changes

  1. Add a Summary, to give a very short description of what has been done in this particular iteration.

  2. Add a Description, to add some more details about this commit

  3. Hit Commit to main

  4. Hit Push to Origin

!

Check Changes Online and Check Changes

Just Open the Git Repo on GitHub to make sure that the changes took effect