First Commit
You might now know that we need to upload our code in github for other people to see and use it. It’s like sharing and caring the community which gives you many things.
We made a meme page
Now your task is to add a meme ;)
Google search any meme or reddit search it or any thing => We want a link of image
Now follow the below steps:
- Fork this repository
- Clone it into PC
- Always it is best practise to work in a development branch rather than a main branch.
- Create a new branch
git branch [branch-name]
- Change branch
git checkout [branch-name]
-
Now open index.html in a text editor (Notepad, VS code anything you like)
- There will be an option saying Add below this line <=, add the following code below it and replace [image-url] to your meme url.
<div class="gallery-item">
<div class="content"><img src="[image-url]"></div>
</div>
- Now that you have added this, go to you terminal or git. Then
git add .
to add it for commiting phase.
git commit -m "added meme"
to commit changes
- Now you have commited changes to your side branch. Merge it to main branch by:
git checkout main
git merge [branch-name]
git push
to push the changes
- Now that you have merged it to main the last thing to do is to give a pull request to the fork owner.
- Head over to github forked repository and create a pull request.
Worry not if you are stuck on your way it will be done by seniors as well. :)