Hey folks, out there we all know about github and it is basically a git hosting site so now you must be wondering what is git? In simple words Git is a distributed version control system for tracking changes in source code during software development. Itis designed for coordinating work among programmers, but it can be used to track changes in any set of files.
Hey you can also read this full article on my blog website, i will be grateful to you if you visit it once 😊.
My Blog..
So now we must step further diving into git commands (GUI guys please stay away from this post).
1.git init
Utility: To initialise a git repo on your local machine in your current project directory.
2.git clone
Utility: This command is use to clone a git repo on to your local machine this could be your own repo hosted on GitHub or any other repo by some other cool developer just like me. Here you just have to replace with the url of that repo you want to clone or download.
3.git config
Utility: To config the git on your machine (mandatory) .
Syntax:
git config --global user.name "theuitown"
git config --global user.email "electronlabsdev@gmail.com"
4.git add
Utility: To save or add the changes you have made to the working directory this will not really take effect until you commit the changes.
Syntax:
"git add <file_name>" or "git add ." (to add all the files to repo)
5.git status
Utility: To check the status of the repo like what all changes you have made and what is added to repo and what not.
Top comments (0)