Development

Git

What is Git

Sit commodi iste iure molestias qui amet voluptatem sed quaerat. Nostrum aut pariatur. Sint ipsa praesentium dolor error cumque velit tenetur.

GUI Clients

GitHub Desktop


SSH

Windows

Open terminal and run the following command.

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

If you are using a legacy system that doesn't support the Ed25519 algorithm, use:

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

macOS

Open terminal and run the following command.

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

Linux

Open terminal and run the following command.

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

Git Commands

Remote

List all remotes for the current repository.

> git remote -v

Replace the URL of the remote repository.

> git remote set-url origin https://github.com/username/repository.git
> git push -u origin main

Or you can add a new remote.

> git remote add github https://github.com/username/repository.git
> git push -u github main

Remove a remote.

> git remote remove <remote-name>

# example:
> git remote remove github
Previous
Docker