Git - CI/ CD Flashcards

1
Q

What is Continuous Integration(CI)?

A

Continuous Integration (“CI”) refers to the automation process of syncing new code to a repository. Any new changes to the application code are immediately built, tested, and merged.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Continuous Delivery or Continuous Deployment ?

A

Continuous Delivery, or Deployment, (“CD”) refers to the process of automating the deployment part of the workflow. When you make a change which gets merged to the repository, this step takes care of deploying those changes to the production environment (or any other environment).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a GitHub Action?

A

GitHub Action is like a workflow that runs on any GitHub event

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a git repo?

A

A git repo tracks changes to files within a folder.you can create any nber of local git repos each stored in its own folder. Each git repo that you create is independent of other git repos

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How versioning is handled in a git repo?

A

A git repo stores every version of every file in the repo , unless you tell git to ignore a file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

When to use merging or rebasing?

A

If there are new commits in main are relevant to the feature that you’re working on .To incorporate new commits into feature branch, you have two options : merging or rebasing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is merge?

A

When you merge main branch into feature branch , it creates a merge commit that ties together the histories of branches. The existing branches are not changed in any way

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is rebase?

A

When you rebase feature branch onto main branch , entire feature branch begins on the tip of the main branch . It creates brand new commits for each commit in the original or feature branch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is interactive rebasing?

A

It gives opportunity to alter the commits as they are moved to new branch. Typically this is used to clean up a messy history before merging feature onto main branch - rebase if there is a commit which has the code changes of other commit then we can make it into a single commit instead of 2 commits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is golden rule of rebasing?

A

Never use git rebase on public branches

How well did you know this?
1
Not at all
2
3
4
5
Perfectly