Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.54 KB

README.md

File metadata and controls

57 lines (40 loc) · 1.54 KB

Git Command Guide

This repository provides a hands-on guide to using essential Git commands, separated for Windows and macOS users.

Table of Contents

Introduction

Git is a powerful version control system that helps track changes in your code and collaborate with others. This guide provides commonly used Git commands, tailored for your operating system.

Setup

  1. Install Git:
    • Download and install Git from the official Git website.
  2. Configure Git:
    • Open your terminal or command prompt.
    • Set your username and email:
      git config --global user.name "Your Name"
      git config --global user.email "[email address removed]"
    • Set your default branch name to main.
      git config --global init.defaultBranch main

Basic Git Commands

Windows

See windows_commands.txt for the list of Git commands.

macOS

See macos_commands.txt for the list of Git commands.

Contributing

Feel free to contribute to this guide by adding more commands, improving explanations, or fixing errors.

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Commit your changes.
  4. Push your changes to your fork.
  5. Submit a pull request.

License

This project is licensed under the MIT License.