An open API service indexing awesome lists of open source software.

https://github.com/shivam-n-patel/gitgithubsshconfiguration

Easily configure SSH settings for managing multiple Git accounts on a single device. This setup is useful for handling personal and work GitHub accounts or different repositories seamlessly.
https://github.com/shivam-n-patel/gitgithubsshconfiguration

clone git github-config init linux macos push ssh ssh-key windows

Last synced: 2 months ago
JSON representation

Easily configure SSH settings for managing multiple Git accounts on a single device. This setup is useful for handling personal and work GitHub accounts or different repositories seamlessly.

Awesome Lists containing this project

README

          

# Git SSH Configuration Setup

Easily configure SSH settings for managing multiple Git accounts on a single device. This setup is useful for handling personal and work GitHub accounts or different repositories seamlessly.

## 📌 Setup Instructions

1. **[Windows Users](https://github.com/shivam-n-patel/SSHConfiguration/tree/main/windows):** Follow the steps in the `Windows` folder.
2. **[Mac/Linux Users](https://github.com/shivam-n-patel/SSHConfiguration/blob/main/mac%20or%20linux/ssh-setup.md):** Follow the steps in the `Mac-Linux` folder.

Choose the appropriate guide based on your operating system and configure Git SSH effortlessly.

---

## 🚀 Using SSH with Git

### 🔹 Cloning a Repository Using SSH
```sh
git clone git@:/your-repository.git
```

### 🔹 Initializing a New Repository and Adding SSH Remote
```sh
git init
git add .
git commit -m "first commit"
```

```sh
// The above commit command might prompt you to do the following 2 commands (to be done only once per repo)
// if not prompted skip these commands
git config user.email "github-email-id"
git config user.name "github-user-name"
```

```sh
git branch -M main
```

Add SSH remote:
```sh
git remote add origin git@:/your-repository.git
git push -u origin main
```