A comprehensive guide and collection of resources to help beginners learn Git and GitHub, curated by Kuwarsaab.
- Introduction
- Getting Started
- Git Basics
- Branching and Merging
- Working with GitHub
- Advanced Git Commands
- Contributing
- License
Git is a powerful version control system that enables developers to track changes, collaborate, and maintain their codebase effectively. Git-Learn is designed to help you get comfortable with the essential concepts and commands of Git and GitHub.
Whether you're completely new to Git or want to enhance your skills, this repository will serve as your learning companion.
To start using Git, you need to install it on your machine. Follow these links for installation guides:
Once installed, you can verify the installation by running the following command in your terminal:
``bash git --version
Start with the basic Git commands for managing repositories and tracking changes.
-
Initialize a repository bash git init
-
Clone a repository bash git clone
-
Check the status of your repository bash git status
-
Stage changes bash git add
-
Commit changes bash git commit -m "Your commit message"
Branches in Git allow you to work on different parts of your project simultaneously. Here’s how to work with them:
-
Create a new branch bash git branch
-
Switch to a branch bash git checkout
-
Merge branches bash git merge
-
Delete a branch bash git branch -d
After learning basic Git commands, integrate your local repository with GitHub:
-
Add a remote bash git remote add origin
-
Push changes to GitHub bash git push origin
-
Pull changes from GitHub bash git pull origin
-
Fork and create a pull request: Learn how to fork repositories, make changes, and create pull requests on GitHub to collaborate with others.
Once you're comfortable with the basics, explore these advanced commands:
-
Stashing changes bash git stash
-
Viewing commit history bash git log
-
Reverting a commit bash git revert
-
Resetting changes bash git reset
We welcome contributions! If you have any tips or resources that would benefit beginners, feel free to open an issue or submit a pull request.
Steps to Contribute:
- Fork the repository
- Create a new branch (git checkout -b feature-branch)
- Commit your changes (git commit -m "Add feature")
- Push to the branch (git push origin feature-branch)
- Open a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
Happy Coding!
Created with ❤️ by Kuwarsaab
This README.md
provides a clear overview of the purpose, usage, and contribution guidelines for the repository. Let me know if you'd like any further customization!