36 lines
684 B
Markdown
36 lines
684 B
Markdown
---
|
|
title: Setting Up Git
|
|
description: Steps to get up and running with Git
|
|
published: true
|
|
date: 2024-06-30T20:47:45.869Z
|
|
tags:
|
|
editor: markdown
|
|
dateCreated: 2024-06-30T20:44:58.238Z
|
|
---
|
|
|
|
# Description:
|
|
|
|
Basic steps to get git connected to server and able to clone repos.
|
|
|
|
# Steps:
|
|
|
|
1. Install and configure git:
|
|
|
|
```
|
|
git config --global user.name "Your Name"
|
|
git config --global user.email "yourname@example.com"
|
|
git config --global init.defaultBranch main
|
|
git config --global color.ui auto
|
|
git config --global pull.rebase false
|
|
|
|
```
|
|
2. Create SSH Key
|
|
```
|
|
ssh-keygen -t ed25519
|
|
```
|
|
3. Copy public key to server
|
|
```
|
|
cat ~/.ssh/id_ed25519.pub
|
|
```
|
|
4. Clone desired repo using ssh
|