What is git push good for?
Experience Level: Medior
Tags: Git
Answer
The command git push
is used for sending changes from your local repository to a remote repository. All commits that weren't previously sent will be sent.
Use git push
command after the git commit
command. If you forget to do this, the committed changes will be only in your local repository, but they won't be visible for your team members who can see only changes that are present in the remote repository.
Related Git job interview questions
When and why would you use git config command?
Git MediorWhen and why would you use git stash?
Git MediorWhat is git pull good for?
Git MediorWhat do you need to do in order to use Git for your project?
Git MediorWhat are hooks in Git?
Git Medior