diff --git a/CheatSheets/Git-Cheatsheet.md b/CheatSheets/Git-Cheatsheet.md new file mode 100644 index 0000000..7b9f37e --- /dev/null +++ b/CheatSheets/Git-Cheatsheet.md @@ -0,0 +1,32 @@ +# Git CheatSheet + + +| Command | Explanation | +| ---------------------------------------------------------| -------------------------------------------------- | +| `git config` | Configure Git settings. | +| `git config --global user.name "Your Name"` | Set your name for Git. | +| `git config --global user.email "youremail@example.com"` | Set your email for Git. | +| `git config --global color.ui true` | Enable color output. | +| `git init` | Initialize a new Git repository. | +| `git clone ` | Clone an existing repository to your local machine.| +| `git status` | Show the status of your working directory and staging area.| +| `git add ` | Add a file to the staging area. | +| `git commit -m "Commit message"` | Commit changes in the staging area with a message. | +| `git branch` | Show a list of all branches in the repository. | +| `git branch ` | Create a new branch with the given name. | +| `git checkout ` | Switch to the branch with the given name. | +| `git merge ` | Merge changes from the specified branch into the current branch.| +| `git remote -v` | Show a list of all remote repositories. | +| `git remote add ` | Add a new remote repository. | +| `git push ` | Push changes to the remote repository. | +| `git pull ` | Pull changes from the remote repository. | +| `git log` | Show a log of all commits in the repository. | +| `git diff` | Show a diff of all changes made since the last commit.| +| `git stash` | Temporarily save changes without committing them. | +| `git reset` | Unstage changes in the staging area. | +| `git revert ` | Undo changes made in a specific commit. | +| ---------------------------------------------------------| --------------------------------------------------- | + +# Learn More about Github from here: + +https://youtu.be/ng_3YZHnz8U diff --git a/CheatSheets/GitHub-Cheatsheet.md b/CheatSheets/GitHub-Cheatsheet.md new file mode 100644 index 0000000..a84aa92 --- /dev/null +++ b/CheatSheets/GitHub-Cheatsheet.md @@ -0,0 +1,60 @@ +# GitHub CheatSheet + +# **How to Contribute to an Open Source Project** + +🎉 Congratulations on deciding to contribute to an open source project! Here are the steps you can follow: + +## **Step 1: Find a Project** + +There are many open source projects out there that you can contribute to. Look for a project that interests you and is relevant to your skills. + +## **Step 2: Fork the Repository** + +To get started, fork the repository of the project you want to contribute to. This will create a copy of the project in your own GitHub account. + +## **Step 3: Clone the Repository** + +Next, clone the repository to your local machine using the **`git clone`** command and the URL of your forked repository. + +## **Step 4: Set Up Remotes** + +Set up a remote connection to the original repository using the **`git remote add`** command. This will allow you to keep your forked repository in sync with the original repository. + +## **Step 5: Create a New Branch** + +Create a new branch for your changes using the **`git checkout`** command and the **`-b`** flag. + +## **Step 6: Make Changes** + +Make the desired changes to the code base on your local machine. + +## **Step 7: Track Changes** + +Track the changes you made using the **`git add`** command. + +## **Step 8: Commit Changes** + +Commit your changes to your branch using the **`git commit`** command and an appropriate commit message. + +## **Step 9: Push Changes** + +Push your changes to your forked repository on GitHub using the **`git push`** command. + +## **Step 10: Create a Pull Request** + +Create a pull request (PR) from your branch to the original repository. Make sure to include a clear and detailed description of the changes you made in the PR. + +## **Step 11: Wait for Review** + +Wait for the maintainers of the project to review your PR. They may ask for changes or request additional information before accepting your contribution. + +## **Step 12: Celebrate!** + +Congratulations! You have made a valuable contribution to an open source project. + +Remember, contributing to open source is a collaborative effort, and it's important to follow the guidelines and best practices of the project you are contributing to. Happy contributing! 🎉👏 + + +# Learn More about Git from here: + +https://youtu.be/ng_3YZHnz8U