Code Monkey home page Code Monkey logo

getting-started's Introduction

Git Bash Setup Guide

A comprehensive guide for setting up Git Bash on your local machine, including setting up your user name, email, generating SSH keys, and configuring Git.

I apologize for missing that. Here is the updated Table of Contents with emojis:

Table of Contents

  1. ๐Ÿ“ฅ Download and Install Git Bash
  2. ๐Ÿ› ๏ธ Configure User Name and Email
  3. ๐Ÿ”‘ Generate SSH Key
  4. โž• Adding SSH Key to SSH Agent
  5. โš™๏ธ Configure Git to Use SSH Key
  6. ๐ŸŽจ Additional Configuration
  7. ๐Ÿ”œ What's Next

1. Download and Install Git Bash

1.1 Download Git Bash

  • Go to the official Git website and download the latest version of Git for your operating system.

1.2 Install Git Bash

  • Run the installer and follow the prompts in the Git Setup wizard. It's safe to stick with the default options if you are unsure about any of the settings.

2. Configure User Name and Email

2.1 Open Git Bash

  • Open Git Bash.

2.2 Set User Name

  • Set your username by running:
    git config --global user.name "Your Name"

2.3 Set User Email

3. Generate SSH Key

3.1 RSA Key

3.1.1 Generate RSA Key

3.1.2 Save RSA Key

  • When you run the command, it will ask where to save the key. By default, it will save the key to ~/.ssh/id_rsa for your user profile. Press enter to accept the default.

3.1.3 Set Passphrase (Optional)

  • It will also ask for a passphrase for extra security, which is optional.

3.2 ED25519 Key

3.2.1 Generate ED25519 Key

3.2.2 Save ED25519 Key

  • The command will ask where to save the key. By default, it will save the key to ~/.ssh/id_ed25519 for your user profile. Press enter to accept the default.

3.2.3 Set Passphrase (Optional)

  • It will also ask for a passphrase for extra security, which is optional.

3.3 When to Use Which Key

Key Type When to Use
RSA Most commonly used and widely supported.
ED25519 More secure and efficient, but may not be supported by all systems.

4. Adding SSH Key to SSH Agent

4.1 Start SSH Agent

  • Start the SSH agent by running:
    eval "$(ssh-agent -s)"

4.2 Add SSH Key to Agent

  • Add your SSH key to the agent by running:
    ssh-add ~/.ssh/id_rsa
    Replace id_rsa with id_ed25519 if you generated an ED25519 key.

5. Configure Git to Use SSH Key

5.1 Configure Git

  • Run the following command to ensure that Git uses your SSH key:
    git config --global core.sshCommand "ssh -i ~/.ssh/id_rsa -o IdentitiesOnly=yes"
    Replace id_rsa with id_ed25519 if you generated an ED25519 key.

6. Additional Configuration

6.1 Enable Colored Output

  • To enable colored output, run:
    git config --global color.ui auto

7. What's Next

Task Status
Download and Install Git Bash โœ…
Configure User Name and Email โœ…
Generate SSH Key โœ…
Adding SSH Key to SSH Agent โœ…
Configure Git to Use SSH Key โœ…
Additional Configuration โœ…
Creating a new repository โŒ
Cloning an existing repository โŒ
Creating branches โŒ
Making commits โŒ
Pushing changes to GitHub โŒ

getting-started's People

Contributors

d-suter avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.