Push: delivers commits to the recipient and requests that they update their branch. This necessitates that everything on their end is in order. It is impossible to combine simultaneous growth in this way. Pull: executes git fetch, which fetches commits and updates your Git's remote-tracking name, before running a second Git command to update your branch.
The git fetch command copies commits, files, and references from a remote repository to your local repository. Fetching is what you do when you want to know what other people have been up to.
The git push command is used to transfer content from a local repository to a remote repository. Pushing is the process of sending commits from a local repository to a remote repository. It's similar to git fetch, except that instead of importing commits to local branches, pushing exports them to remote branches.
git pull origin/master merges changes from the locally stored branch origin/master with the checked-out branch. The origin/master branch is a "cached copy" of what was last fetched from origin, which is why it's referred to as a remote branch in git.
It's no secret that using git push —force is risky. It will, without a doubt, replace the remote with your local changes—and it will not check to see if this will override any changes made up to the remote throughout the process. Even the most cautious development team faces danger while working in a shared repository.
Learner's Ratings
4.6
Overall Rating
82%
6%
6%
0%
6%
Reviews
A
arslan zulfiqar
5
thanks you from pakistan this webste help me a lot to learn new thinks i have also complete other 2 courses and content quality is good
S
Shivam gupta
5
hello sit please solve forem issue forem start not ho raha hai
S
shani
4
git commit se bahar kaise nikle ye to aapke leran vern k piche he chup gya h thoda sahi se smjhao sir kaise jaha insert likha hua h waha likhne ka option he nhi aaraha h what should i do plz tell me
V
Vimal Bhatt
5
easy to understand
A
Ankit Agarwal
5
Well done Learn Vern, you are doing a fabulous job, Nikhil has nailed the session, Please enhance Github Actions session. Thanks!!
R
Rajib Sarder
5
Best Course I have ever seen.
V
Vivek Chandra
5
bhut hi achhe se samajh gye
S
Sudipa Samanta
5
Thank you LearnVern to make a necessary learning platform for Software Engineering students for free of cost. this is totally helpful for us
B
BHAUMIK JOSHI
5
Very Good for Beginner to Master in Git & GitHub.
A
Ajay Choudhary
5
better course and it will be start from scratch and helpful.
Share a personalized message with your friends.