Zscaler
Git 2 questions
- #1Fix Repository with Unrelated Histories
The repository at
/home/interview/repois in a broken state. Local and remote branches have diverged with no common ancestor. Consequently,git push origin mainfails with a non-fast-forward error, andgit pull origin mainfails because the histories are unrelated. - #2Merge Repositories Preserving Both Histories
You have two separate Git repositories at
/home/interview/repo-a(5 commits) and/home/interview/repo-b(4 commits) developed independently. Create a new monorepo at/home/interview/monorepothat combines both repositories into separate subdirectories using subtree (project-a/andproject-b/) while preserving the full commit history from both repositories.
Kubernetes 1 question
- #3Pod With Readiness Probe
You need to deploy a web application that only receives traffic when it's ready to serve requests.