Welcome to the Python Quick Reference & Projects repository! This repository is a one-stop hub for quick Python references, practical coding tips, and hands-on projects to help you learn and apply Python programming efficiently.
- Quick Reference Guides: Short, handy guides for Python concepts and syntax.
- Sample Projects: Simple to advanced Python projects to enhance your skills.
- Code Snippets: Ready-to-use snippets for common programming tasks.
Follow the guide below to contribute to this repository using GitHub Desktop or the Command Line.
-
Clone the Repository
- Open GitHub Desktop.
- Click on File > Clone Repository.
- In the new window, select URL and paste the repository link:
https://github.com/YourUsername/Python-Quick-Reference-Projects.git - Choose the location on your computer to save the repository and click Clone.
-
Create a New Branch
- In GitHub Desktop, go to the top left and click on the Current Branch dropdown.
- Click on New Branch.
- Name your branch something meaningful, like
add-new-snippetorfix-bug. - Click Create Branch.
-
Make Your Changes
- Edit or add your code files in your local repository folder using any code editor of your choice.
- Save your changes.
-
Commit Your Changes
- Go back to GitHub Desktop.
- Youβll see the changes listed in the Changes tab.
- Write a clear commit message, such as
Added quick ref for loops. - Click Commit to [your branch name].
-
Push Your Changes
- Click Push Origin at the top right to upload your changes to GitHub.
-
Create a Pull Request
- Click on Create Pull Request in GitHub Desktop.
- Fill in the pull request details and click Create Pull Request.
-
Clone the Repository
- Open your terminal or command prompt.
- Navigate to the folder where you want to clone the repo:
cd /path/to/your/folder - Clone the repository using:
git clone https://github.com/YourUsername/Python-Quick-Reference-Projects.git
-
Create a New Branch
- Navigate into the cloned repository:
cd Python-Quick-Reference-Projects - Create a new branch:
This command creates a new branch and switches to it.
git checkout -b add-new-snippet
-bstands for "branch."
- Navigate into the cloned repository:
-
Make Your Changes
- Edit or add files in the project directory using your preferred code editor.
-
Stage Your Changes
- Add the changes to the staging area:
The
git add ..stages all changed files. You can specify files individually if needed.
- Add the changes to the staging area:
-
Commit Your Changes
- Commit the changes with a descriptive message:
The
git commit -m "Added quick ref for loops"-mflag allows you to add a commit message directly in the command line.
- Commit the changes with a descriptive message:
-
Push Your Changes to GitHub
- Push your branch to the remote repository:
git push origin add-new-snippet
- Push your branch to the remote repository:
-
Create a Pull Request
- Go to your GitHub repository page.
- Youβll see a message to create a pull request for your recently pushed branch.
- Click Compare & pull request, fill in the details, and click Create pull request.
We welcome all contributions! Feel free to submit pull requests, report bugs, or suggest new features.
This project is licensed under the MIT License - see the LICENSE file for details.
Happy coding! π§βπ»π