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
728 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,070 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 22, 2020 in Git & GitHub by SRI
253 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 18, 2020 in Git & GitHub by MD
• 95,200 points
1,574 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 in Git & GitHub by MD
• 95,200 points
1,197 views
0 votes
1 answer

Can I programmatically access gitlab secrets hash?

The newer versions of gitlab do support ...READ MORE

answered Mar 29, 2018 in Git & GitHub by DareDev
• 6,890 points
211 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,127 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,070 points
414 views
0 votes
3 answers

What is git rebasing?

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

answered Sep 3, 2020 in Git & GitHub by SRI
489 views