Nikhil Bobade
Posted on October 2, 2021
Hey guys hacktoberfest is started if you donโt know about GitHub or what is GitHub how its use so this is useful post for you.
In this post you learn how to use GitHub and create your 1st pull request with using GitHub. and also after 4 successful pull request you will be get free t-shirt from hacktoberfest event. so learn and participate in event.
What is GitHub:-
GitHub is a web-based interface that uses Git, the open source version control software that lets multiple people make separate changes to web pages at the same time. As Carpenter notes, because it allows for real-time collaboration, GitHub encourages teams to work together to build and edit their site content.
GitHub Account and create repo :-
1.go to github.com and simple create your account .
2.Create a new repository
3.To create a new repository, select New Repository from the + sign dropdown menu (you can see I've selected it in the upper-right corner in the image above).
4.Enter a name for your repository (e.g., "portfolio") and click Create Repository).
5.Your 1st repo is created. ๐๐
Now we are moved to next step :-
1.Download git from browser.
2.https://git-scm.com/ .
3.simple download and install the git software
Simple now open your command prompt or PowerShell ๐ป
1.Now we are Create folder for your project folder use this command (mkdir Demo).
2.Change your terminal to the Demo directory with the command (cd Demo).
3.Now create your 1st file readme file and save as (readme.md)
yeah ๐ Now its time to add our file in GitHub
1.Use command ( git init )in terminal .
2.and add that file in git like git add (filename) or git add . there are to add multiple file we are use ( git add . ).
3.add your remote URL
4.git remote add origin https://github.com//Demo.git
5.then use command for commit the changes ( git commit -m โfirst commitโ
6.After this you can be use git status to check the your files .
if you want to change the branch use this command (git branch -m main)
7.now its time to push your code or files to GitHub
8.Use git push -u origin main
Congratulations! ๐๐๐ You have create your 1st requst to git now if you want to learn more comment git at this post or simple check github docs .
Thank You.
A collabration with Geeky4u Did you find it helpful let me know in comments.
Posted on October 2, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.