Welcome to the Class project repository! Follow the steps below to contribute to this project.
- Git installed on your machine
- A GitHub account
- Basic understanding of Git commands
- Click the "Fork" button at the top right of this repository
-
Open your terminal or command prompt.
-
Run the following command:
git clone https://github.com/bhantsi/class-practice-collab.git cd class-project
cd class-practice-collab
-
Create a new branch for your feature or fix:
git switch -c feature/your-feature-name
-
Use a descriptive branch name (e.g.,
feature/add-login
orfix/typo-in-readme
).
- Open the project in your preferred code editor.
- Make the necessary changes to the codebase.
-
Check which files you modified:
git status
-
Stage the changes you want to commit:
git add .
(This stages all modified files. Replace
.
with a specific file name to stage only that file.)
-
Write a descriptive commit message:
git commit -m "Brief description of changes"
-
Push your branch to the remote repository:
git push origin feature/your-feature-name
- Go to the repository on GitHub.
- Navigate to the Pull Requests tab.
- Click New Pull Request.
- Select your branch and the branch you want to merge into (usually
main
ordevelop
). - Provide a clear title and description for your pull request.
- Submit the pull request for review.