Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to merge cloned git repository with the original repository

we are using git on a lan of computers and we have a central repository on one machine, every developer has to clone the repository and work on his one machine. but how to merge all this repositories together in the central repository ?

like image 492
Ayoub M. Avatar asked Nov 22 '25 08:11

Ayoub M.


1 Answers

Short version: git pull is the equivalent of fetch + merge. You can --- by default --- only push "fast forward" changes, which means you've either merged or rebased your uncommitted changes. Contrary to what Blaine suggests, push has nothing to do with merging.

Longer version: You seem to not understand quite how Git works. As source control is an integral part of software development and you're using it, I suggest you read up on how Git's data model works --- and how to implement various workflows with it. Excellent source: http://git-scm.com/documentation

like image 170
Alex Brasetvik Avatar answered Nov 23 '25 22:11

Alex Brasetvik