Git - CI/ CD Flashcards
What is Continuous Integration(CI)?
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.
What is Continuous Delivery or Continuous Deployment ?
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).
What is a GitHub Action?
GitHub Action is like a workflow that runs on any GitHub event
What is a git repo?
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 versioning is handled in a git repo?
A git repo stores every version of every file in the repo , unless you tell git to ignore a file.
When to use merging or rebasing?
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
What is merge?
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
What is rebase?
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
What is interactive rebasing?
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
What is golden rule of rebasing?
Never use git rebase on public branches