Git - Basic/Initial Setup

Git - Basic/Initial Setup

1. Install Git

Most Linux distributions include Git in their package managers. Here's how to install it on common distributions:

Ubuntu/Debian:

  sudo apt update && sudo apt install git -y

2. Verify Installation

Check if Git is installed correctly:

  git --version

This should output the installed Git version.

3. Configure Git

Set your username and email:

  git config --global user.name "Your Name"
  git config --global user.email "[email protected]"

Replace `Your Name` and `[email protected]` with your actual information.

4. (Optional) Configure Text Editor

Specify your preferred text editor for Git:

  git config --global core.editor "your_editor"

Replace `your_editor` with your editor's command (e.g., `nano`, `vim`, `emacs`).

/var/www/html/data/pages/git_basic_initial_setup.txt · Last modified: 2024/08/13 20:01
CC Attribution-Share Alike 4.0 International Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International