📄️ Basic Git Commands
Git basic commands. Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
📄️ Git Init
The git init command creates a new Git repository. The git init command can be used to convert an existing, unversioned project to a Git repository or initialize a new, empty repository.
📄️ Git Add
The git add command is used after checking the status of the files, to add new or changed files in your directory to the staging area. The staging area contains a list of all the files you have recently changed.
📄️ Git Commit
The git commit command captures a snapshot of the project's currently staged changes. Committed snapshots can be thought of as safe versions of a project.
📄️ Git Status
The git status command is used to display the state of the repository and staging area. It allows us to see the tracked, untracked files and changes.
📄️ Git Branch
A Git branch is a version of the repository that diverges from the main working project. It is a feature available in most modern version control systems. A Git project can have more than one branch.
📄️ Git Checkout
The `git checkout` command operates upon three different entities which are files, commits, and branches. Sometimes this command can be dangerous because there is no undo option available on this command.
📄️ Git Merge
The git merge command is used to merge the branches. It is the positive conclusion of your decision to incorporate the changes you saw using git fetch command.
📄️ Git Tag
Git Tag are ref's that point to specific points in Git history. Tagging is generally used to capture a point in history that is used for a marked version release.
📄️ Git Remote
In Git, the term remote is concerned with the remote repository. It is a shared repository that all team members use to exchange their changes. A remote repository is stored on a code hosting service like an internal server, Gitopia, GitHub, Subversion, and more.
📄️ Git Clone
The `git clone` command is used to create a local copy of a specific repository or branch within a repository.
📄️ Git Fetch
The git fetch commands helps users download commits, refs and files from the remote repository to the local repository. These commits are done by the teammates and people associated with the project in the organization or maybe the user itself directly on the remote repository.
📄️ Git Push
git push is the git command used to upload the contents of a local repository to the corresponding remote repository. git push updates the remote branch with local commits.
📄️ Git Pull
git pull is a git command used to update the local version of a repository from a remote. It is one of the four commands that prompts network interaction by Git.