What is git push good for?
Experience Level:
Mid-level
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 Mid-level -
When and why would you use git stash?
Git Mid-level -
What is git pull good for?
Git Mid-level -
What do you need to do in order to use Git for your project?
Git Mid-level -
What are hooks in Git?
Git Mid-level