Solved

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

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Regular Expression Calculator Tester 2 74
Not seen Link button 5 41
sp_configure 'external scripts enabled', 1; 7 52
printf performancy 11 43
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.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
How to reset a branch to a previous commit, and how to squash multiple commits into a single commit using the EGit plugin for Eclipse.

832 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