To contribute to this project, I'd like you to please follow the steps outlined below to raise a pull request with your changes. I will review the changes and merge them if they are appropriate and relevant.
In the top-right corner of the page, click Fork
![image](https://private-user-images.githubusercontent.com/58328462/352811519-064bf2ee-dd96-4c13-b4d4-71309d6ad4d7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3MjY5NjQsIm5iZiI6MTcyNTcyNjY2NCwicGF0aCI6Ii81ODMyODQ2Mi8zNTI4MTE1MTktMDY0YmYyZWUtZGQ5Ni00YzEzLWI0ZDQtNzEzMDlkNmFkNGQ3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA3VDE2MzEwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI3YTA4NDQ2M2M0MWU2ZWYzYzk2M2Q2MGFhNjVjNjIyZjMxNjZkMzRkM2UxNWFjMGI0NzNkNDhlMzEyYjY4OTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.UioaownVE6UeEhlXXwy6_1BEwdf1ci4ftV5wk_SLzSw)
You've successfully forked the portfolio repository, but so far, it only exists on GitHub. To be able to work on the project, you will need to clone it to your computer.
- Click on
<> Code
- Now click on the copy icon
- Open the terminal where you want to keep the project repo.
- Type
git clone
and then paste the URL you copied earlier. It will look like
git clone "PAST_URL_YOU_COPIED"
Before making changes to the project, you should create a new branch and check it out. By keeping changes in their own branch, you follow GitHub Flow and ensure that it will be easier to contribute to the same project again in the future.
git branch BRANCH-NAME
git checkout BRANCH-NAME
Go ahead and make the changes to the project using your favourite text editor, like Visual Studio Code.
When you're ready to submit your changes, stage and commit your changes. git add .
tells Git that you want to include all of your changes in the next commit. git commit takes a snapshot of those changes.
git add .
git commit -m "a short description of the change"
When you stage and commit files, you essentially tell Git, "Okay, take a snapshot of my changes!" You can continue to make more changes and take more commit snapshots.
Right now, your changes only exist locally. When you're ready to push your changes up to GitHub, push your changes to the remote.
git push
At last, you're ready to propose changes to the main project!
This is the final step in producing a fork of someone else's project in this case its harshit:portfolio
, and arguably the most important. If you've made a change that you feel would benefit the community as a whole, you should consider contributing back.
To do so, head on over to the repository on GitHub where your project lives. For this example, it would be at https://github.com/<your_username>/portfolio.
You'll see a banner indicating that your branch is one commit ahead of harshit:main
. Click Contribute and then Open a pull request.
GitHub will bring you to a page that shows the differences between your fork and the harshit/portfolio
repository. Click Create pull request.
GitHub will bring you to a page where you can enter a title and a description of your changes. It's important to provide as much useful information and a rationale for why you're making this pull request in the first place. So that I will be able to the proper details for your changes so while reviewing the code its easy for me to do.
Finally, click Create pull request.