From 1d309c9c7e1c722914892699a4b4c8ef997d7a6e Mon Sep 17 00:00:00 2001 From: Cheeks Date: Sun, 30 Jun 2024 20:45:00 +0000 Subject: [PATCH] docs: create home/linux/Setting-Up-Git --- home/linux/Setting-Up-Git.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 home/linux/Setting-Up-Git.md diff --git a/home/linux/Setting-Up-Git.md b/home/linux/Setting-Up-Git.md new file mode 100644 index 0000000..e784764 --- /dev/null +++ b/home/linux/Setting-Up-Git.md @@ -0,0 +1,30 @@ +--- +title: Setting Up Git +description: Steps to get up and running with Git +published: true +date: 2024-06-30T20:44:58.238Z +tags: +editor: markdown +dateCreated: 2024-06-30T20:44:58.238Z +--- + +# Setting Up Git +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