Skip to main content

2 posts tagged with "github"

View All Tags

· 2 min read
Elbert Ribeiro

Docusaurus Plushie

As a developer, whether you’re a beginner or a senior, you’ve probably come across the following situation: in a certain project, you’ve set up all the necessary dependencies and development environment for the project, but you’re not alone in this task. There are two more people in the project with you, but they can’t or take too long to set up the environment, either due to package incompatibilities with the chosen language or differences between operating systems. That’s where Gitpod comes in, a tool that some developers still don’t know about.

What is Gitpod?

It is a cloud-based development environment, but unlike other environments, you create a workspace with all the necessary installations and configurations, including the use of the terminal.

How does it work?

By logging in with your GitHub account at https://www.gitpod.io/, you automatically have access to your repositories, or even third-party repositories. Following the instructions on gitpod.io, a browser tab is opened for environment configuration, and from there, you just code. You can create complete project structures, local servers with Node.js or Django, and many other things.

What is it used for?

In addition to being able to share the workspace with anyone, avoiding the stress of setting up the environment and focusing only on coding the project.

· One min read
Elbert Ribeiro

Checking Generated Keys

To list the existing keys, execute the command: ls -al ~/.ssh

Generating SSH Key

Open the git bash or your Linux terminal and run the following command:

ssh-keygen -t ed25519 -C "your_email@example.com"

Note¹: Replace "your_email@example.com" with your actual email.

Copying the Generated Key

To copy the generated key to the clipboard, use the command:

cat ~/.ssh/id_ed25519.pub. 

Adding Key to GitHub

Open GitHub and go to the profile icon > Settings in the top right corner. In the user settings sidebar, click on "SSH and GPG keys." Click on the "New SSH key" button. In the "Title" field, add a descriptive label for the new key. For example, if you are using your personal computer, you can name this key "Personal Computer." Paste the public key from the clipboard into the "Key" field. Click on "Add SSH key," and you're done!

Testing Connection

Execute the following command in the terminal:

ssh -T git@github.com

Note²: After executing the previous command, type "yes" in the interactive git bash terminal.