Skip to content

ccubu/merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

merge

  • Developer 1 codes feature one from main initial commit
 git checkout -b feature/one
 git add .
 touch code.txt
 echo feature 1 >> code.txt
 git add .
 git commit -m "Feature 1"
 git push origin feature/one
  • Developer 1 creates PR1

  • Developer 2 codes feature two from main initial commit

git checkout -b feature/two
echo feature 2 >> code.txt
git add .
git commit -m"feature 2"
git push origin feature/two
  • Developer 2 creates PR2

  • PR2 gets merged

  • Developer 1 has to fix conflicts:

git checkout main
git pull origin main
git checkout feature/one
git merge main
// Fix conflicts
git commit -m "Fixed conflicts"
git push -u origin feature/one
  • PR1 gets merged

Result:

Spaghetti Graph

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published