- Git rebase
The rebase command is used to bring changes from another branch, usually a branch from which the current branch migrated from. It is basically putting the changes on the base and not on top. You can always rebase from master which is the source of truth. # 1 – pull latest code from master […]
- Git pull
git pull is used to fetch/download new content from a remote repository and immediately update the local repository with that content. git pull is a combination of git fetch and git merge. In the first step of operation git pull will execute a git fetch scoped to the local branch that HEAD is…
- Git push
git push is used to upload local repository commits/changes to a remote repository. This is how you transfer commits from your local repository to a remote repo. It’s the counterpart to git pull or git fetch. Pushing has the potential to overwrite changes so you have to be careful when pushing. //…
- Git commit
git commit is used to take a snapshot of the project’s currently staged changes. Commits are the core building block units of a Git project timeline. Commits are created with the git commit command to capture the state of a project at that point in time. Git Snapshots are always committed to the…
- Git clone
The git clone command is used to clone or copy a remote repository onto a destination such as your laptop or a remote server. Git supports ssh and https network protocols. Git clone ssh Git clone https