

| Common Git Commands | |
git
fork
|
A fork is a copy of a repository. Forking a
repository allows you to freely experiment with changes without
affecting the original project. You can make any changes to a fork, such as:- Creating branches: Branches allow you to build new features or test out ideas without putting your main project at risk. Opening pull requests: If you are hoping to contribute back to the original repository, you can send a request to the original author to pull your fork into their repository by submitting a pull request. |
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 will never change them unless you explicitly
ask it to.
Using the "git commit" command only saves a new commit object in the local Git repository. |
git
push
|
The push command can be considered as a tool to transfer commits between local and remote repositories.It is used to publish new local commits on a remote server. |