Basic Git Commands
git init
: Initializes a new Git repository.
git init
git clone [url]
: Clones a remote repository to your local machine.
git clond [url]
git add [file]
: Stages changes to be committed.
git add [file]
git commit -m "message"
: Commits the staged changes with a message.
git commit -m "Your commit message"
git push
: Pushes your commits to a remote repository.
git push origin branch-name
git pull
: Fetches and merges changes from a remote repository to your local repository.
git pull origin branch-name
git status
: Shows the status of changes in your working directory.
git status
What is Git?
Git is a distributed version control system designed to handle everything from small to very large projects with speed and efficiency. It was created by Linus Torvalds in 2005 for the development of the Linux kernel. In this article, we will discuss about Git, its features, advantages, and disadvantages.