Git: A Beginner's Guide
Posted By: Riya Saini Published: 14, Jan 2024
Before getting started with the basic git commands let's learn about git first.
What is Git?
Git is a version control system (VCS) for tracking changes in the project directory and managing source code. It is free and open-source. Complete long-term change history of every file. This means every change made by many individuals over the years. Git takes snapshots of a project and stores those snapshots as unique versions. Git is designed for distributed development. If you’re involved with a project you can clone the project’s Git repository, and then work on it as if it was the only copy in existence. Every developer’s working copy of the code is also a repository that can contain the full history of all changes.
Go to the Git installation URL if you wish to install the fundamental Git tools. GitHub, GitLab, Savannah, BitBucket, and SourceForge are just a few of the Git interfaces accessible.
Now, let's learn about the first basic git command.
- git status
- git init
- git clone
git add
git add <filename>
We are getting this error because hello.py does not exist.
- git push
git clone "URL of the repository"
git push origin master