How to push your project into git hub repository through command line

Introduction:

Before pushing your project into git repository you have below software required. those are git-bash already installed on your system. Develop the web or core java application on your system and then locally initialize to the git and then commit the all files and create the one repository on your git-hub, bit-bucket,git-lab portal and link your code into your repository and then finally push into the repository which you have previously created. follow the below steps to understand how to push your code into the repository.

Step1: Go to your project location, Right click in that location and click on git bash here.
Home
Step2: Type the command -git init.
Git Init
Step3: git add * (all files will be added into the repository).
Git Add
Step4: git commit -m “message here”
Git Commit
Step5: git remote add origin (URL of your repository).
Repo url
Step6: push the code into(your respective branch) to following command: git push -u origin master
Step7: It will take some time to upload all files into your repository.
Dashboard of Repository


SUBSCRIBE TO OUR NEWSLETTER

I’m the Founder of quickdevops.com. I am a Professional Blogger, Application developer, YouTuber. I’ve been blogging since 2015.I spend a lot of time learning new techniques and actively help other people learn web development through a variety of help groups and writing web development tutorials for my website and blog about advancements in web design and development.Besides programming I love spending time with friends and family and can often be found together going out catching the latest movie or planning a trip to someplace I've never been before.

0 Response to "How to push your project into git hub repository through command line"

Post a Comment