/Tryout

This repository to exercise on git commands

Primary LanguageHTML

Basic Git Commands Practice Repository

Welcome to the Basic Git Commands Practice Repository! This repository is designed to help you learn and exercise fundamental Git commands. Whether you're new to Git or looking to reinforce your understanding, this repository provides a structured way to practice.


Contents

  1. Introduction to Git

    • git init: Initialize a new Git repository.
    • git clone <repository_url>: Clone a repository into a new directory.
    • git config: Configure Git settings.
  2. Basic Workflow

    • git add <file>: Add file(s) to the staging area.
    • git commit -m "<commit_message>": Commit changes to the repository.
    • git status: Check the status of the working directory.
  3. Branching and Merging

    • git branch: List, create, or delete branches.
    • git checkout <branch_name>: Switch branches or restore working tree files.
    • git merge <branch_name>: Merge changes from one branch into another.
  4. Remote Repositories

    • git remote add <name> <url>: Add a new remote repository.
    • git push <remote> <branch>: Push changes to a remote repository.
    • git pull <remote> <branch>: Fetch from and integrate with another repository or a local branch.
  5. Undoing Changes

    • git reset: Reset the current HEAD to the specified state.
    • git revert: Revert some existing commits.
    • git clean: Remove untracked files from the working tree.
  6. Viewing History and Graphs

    • git log: Show commit logs with optional graph decoration.

Feel free to explore and practice these commands in this repository. Each command may have its own directory with README files and examples to help you understand its usage better.

Getting Started

To get started with this repository, simply clone it to your local machine using the following command:

  1. Clone this repository: git clone https://github.com/AhmedRady66/Tryout.git
  2. Navigate to the project directory: cd Tryout

  • start practicing with the provided examples.

Contributions

  • Contributions are welcome! If you have any suggestions for additional commands or improvements to existing examples, feel free to open an issue or pull request.