This repository provides a hands-on guide to using essential Git commands, separated for Windows and macOS users.
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.
- Install Git:
- Download and install Git from the official Git website.
- 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
See windows_commands.txt
for the list of Git commands.
See macos_commands.txt
for the list of Git commands.
Feel free to contribute to this guide by adding more commands, improving explanations, or fixing errors.
- Fork the repository.
- Create a new branch for your changes.
- Commit your changes.
- Push your changes to your fork.
- Submit a pull request.
This project is licensed under the MIT License.