Solved

what is the main difference between git clone and fetch ann pull and push commands

Posted on 2016-10-31
2
41 Views
Last Modified: 2016-11-01
what is the main difference between git clone and fetch ann pull and push commands?
when to use which one.
what are advantages and disadvantages, practical uses of each one. please advise
0
Comment
Question by:gudii9
2 Comments
 
LVL 15

Accepted Solution

by:
gurpsbassi earned 500 total points
Comment Utility
Guddi9 you have been posting questions on EE for a very long time. In that time I was hoping you would learn some basic research skills.

Why don't you use your friend Google first.
A quick search reveals:
https://confluence.atlassian.com/bitbucketserver/basic-git-commands-776639767.html

I would look to see if your question is answered in the above link.

If you still need assistance then please reach out.

Oh and by the way, asking what the advantages and disadvantages of things are before you have understood their meaning is a pointless question.
0
 
LVL 7

Author Comment

by:gudii9
Comment Utility
i got some more understanding on this


when we clone 3 copies created from Remote branch to local called Remote Copy and Local Copy and Commit Copy.

Fetch fetches from Remote Branch to Remote Copy.

Merge does merge from Remote Copy to Local Copy.

Fetch is more kind of a command to check the differences and if needed to fetch and then to merge to local copy through remote copy.


Pull on the other hand is combination of fetch(Remote branch to Remote copy) and merge(remote copy to local copy).

Commit commits from Local Copy to Commit copy.

Push basically pushes changes from commit Copy to remote Branch

When we use DIFF command it finds differences between remote copy and local copy.

When Client like to check the changes we make they need to repeat similar process as above by pulling the changes then DIFF etc.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
How to create a branch, fetch changes, and merge them into another branch using the EGit plugin for Eclipse.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now