Git- Assignment Git and GitHub Assignment ABC is a software company and you have been hired as Sr DevOps Engineer and you have to implement DevOps Lifecycle for a certain number of projects. Below tasks are assigned to you…
Git – tags Tags are used for defining the version or release of your code. Prerequisites:- Local git repo should be created and have some files in it. Branch:- working on the main branch Step1:- Switch to the main branch…
git- work tree A Git worktree is a linked copy of your Git repository, allowing you to have multiple branches checked out at a time. A worktree has a separate path from your main working copy, but it can be…
git stash git stash Stashing takes the dirty state of your working directory — that is, your modified tracked files and staged changes — and saves it on a stack of unfinished changes that you can reapply at any time (even on a different…
git- cherry-pick git cherry-pick is a powerful command that enables arbitrary Git commits to be picked by reference and appended to the current working HEAD. Cherry-picking is the act of picking a commit from a branch and applying it to another. Example …
Git Rebase and Git Merge Merge Step1:- Initialize a new git repo git init Step2:- Create 3 files m1 m2 m3 in master branch touch m1 m2…
Git – Create Remote branches Once you are having different branches on the local Repository then you can push the code changes to respective branches on Github so that developers can download/upload the code into their respective branches. Step 1:…
Git – Branches Git branches Virtual directories get created for each branch. main/master branch is considered as the branch which has the latest and greatest code. We create branches so each developer can work on its own branch and…
Git – git sync with Github (pull,fetch,merge,push) git clone command This command downloads the copy of a Github repository to the local system. Example: There is a new developer who joined the project and he needs the latest code for…