What is the difference between push and pull?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Git Push:
The git push command is used to transfer or push the commit, which is made on a local branch in your computer to a remote repository like GitHub. The command used for pushing to GitHub is given below.
git push ‘branch_name’
Git Pull:
If you make a change in a repository, GIT PULL can allow others to view the changes. It is used to acknowledge the change that you’ve made to the repository that you’re working on. Or also called a target repository.The simple command to PULL from a branch is:
git pull ‘branch_name’.
What is the difference between push and pull?
git pull
The
git pull
command is used to fetch and download content from a remote repository and immediately update the local repository to match that content.git push
The
git push
command is used to upload local repository content to a remote repository.