Can anyone provide git realtime scenarios

0 votes
Need some real time scenarios of git. Thanks in advance.
Feb 6, 2020 in Git & GitHub by anonymous
• 19,610 points
2,298 views

1 answer to this question.

0 votes
You work in a team. You are working on feature 1. I am working on defect 1 and 2. And our tech lead is working on an integration POC. It is possible there will be three branches - feature, defect and integration and of course the master.

We each checkout our code into our respective branches.
We build and test using Jenkins on our own branches. Now you complete your delivery, you will raise a PR to merge the code with the master. The reviewer reviews and confirms the PR.

Now imagine from feature branch you have 3 branches - 3 people working on a single feature. Or maybe from the feature branch - you have 3 sub-branches for each developer. Once you check-in you raise a PR to merge to feature branch. Build and testing done on the feature branch.

It really depends on how your org and team are managing the branching system.
answered Feb 6, 2020 by Sirajul
• 59,230 points

Related Questions In Git & GitHub

0 votes
3 answers

Can anyone explain the git workflow?

HI. The following will help you -Git Workflow Step ...READ MORE

answered Sep 23, 2020 in Git & GitHub by SRI
1,508 views
0 votes
1 answer

How can I retrieve previous version data in Git & GitHub!!?

Hi@akhtar, You can use reset command to do ...READ MORE

answered Jul 19, 2020 in Git & GitHub by MD
• 95,460 points
4,862 views
0 votes
1 answer

Please: Commit your changes or stash them before you can merge in Git.

Hi@akhtar, You can't merge with local modifications. Git ...READ MORE

answered Jan 4, 2021 in Git & GitHub by MD
• 95,460 points
19,182 views
0 votes
0 answers

How do I resolve git saying "Commit your changes or stash them before you can merge"?

I made some changes to my local ...READ MORE

May 13, 2022 in Git & GitHub by Kichu
• 19,040 points
1,178 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,055 views
+2 votes
1 answer
0 votes
2 answers

How to view the nested workflow of a local git repository?

The closest way to view branches in ...READ MORE

answered Aug 2, 2019 in Git & GitHub by Sirajul
• 59,230 points
1,617 views
0 votes
3 answers

What is git rebasing?

HI. Rebase is nothing but a Git utility ...READ MORE

answered Sep 4, 2020 in Git & GitHub by SRI
1,250 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP