Solved

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

Posted on 2016-10-31
2
101 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 16

Accepted Solution

by:
gurpsbassi earned 500 total points
ID: 41867379
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
ID: 41868381
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

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Query Syntax 17 43
Detect Closed Loops (circles, figure-8s, etc) in PNG Images 6 57
how to debug htl and js pages 8 39
Setup GlassFish 4 22
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

828 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