Now Access to Gemini (Google) : Really beat to ChatGPT ?

git commands

git commands

github for beginners.

Here , we first create First One new Repository.it clone as well as push a new file using git bash. Here we explaining all the command for all those operation like clone ,push ,pull, commit. we start to create the repository. First , type www.github.com. and Login your account. after that you can see that main page of the github where right corner you can see the + sign. you just click on that see the option where appear the option that is Create Repository and click on that.
After that new page will be displayed where you fill the all the information like name of the repository and description of your project as well as one option is there. that is visibility. you can choose any one option out of two options. if you want explain any regarding your project or write something anythin then you can select Add READ file. Finally push on create repository button I hope your repository has been created.
open the created repository and click the code button filled with green colour and copy link of your repository.
Check this before move on next step ....How to Download Git Bash Open your command Prompt and point those directory where you want to store the your project. And write the first command

1) git clone copy the url of your repository.

see your local disk where you has pointed. you can see the folder that name as same as repository name.
you create random text file inside the repository folder for and write one command 2) git status this command check the status of the folder where it check whether any new file created or updated any file. if yes , so this command display the name of those file in red colour. I have created one file hs.txt and fire the git status command. see the result below..
After that you add file at the local. the command for this is 3) git add . *
you fire the git status command second time and check your file are locally stored if yes then display name of the file with the green color.



After that you fire a new comman that is 4) git commit -m "message". see this command where message is comment. it is nothing but when you update or create any new file you comment the name of the file that you have updated for reference or traking as well as you comment the version for tracking.
For Example : I have written the command that is "git commit -m "new file" because I have created a new file. so we can track my project easily. you can also write the comment as you wish.

Finally we pushed changes that have been created. for this we use the command that is 5) git push
when you fire the git push , they ask the username and password for authenticate.
Finally we can see the repository at github(web version).

Conclusion


List Commands :
  • 1) git clone url //.....where url is link of the repository
  • 2) git status // .... check the status of the file inside repository folder
  • 3) git add . *
  • 4)git commit -m "write comment"
  • 5) git push

If you have any query regarding this you comment it out....
Thank you for reading this articles....

Comments

  1. I appreciate you taking the time and effort to share your knowledge. This material proved to be really efficient and beneficial to me. Thank you very much for providing this information. Continue to write your blog.

    Data Engineering Services 

    AI & ML Services

    Data Analytics Services

    Data Modernization Services

    ReplyDelete

Post a Comment

Any Query Regarding Article Ask me in comment