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.
Step2: Type the command -git init.
Step3: git add * (all files will be added into the repository).
Step4: git commit -m “message here”
Step5: git remote add origin (URL of your repository).
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.
0 Response to "How to push your project into git hub repository through command line"
Post a Comment