Git and GitHub for DevOps Engineers

ยท

2 min read

๐Ÿš€ #90daysofdevops Journey Update ๐Ÿš€

Day 8, 9, 10, 11, 12 Update:

During my #90daysofdevops challenge, I embarked on an exciting journey to learn about the Basics and Advanced concepts of Git and GitHub. Today, I'm thrilled to share my progress with you all!

Task-1: Setting Up User Name and Email Address In order to associate my commits with the correct user information, I have successfully set up my username and email address.

Task-2: Creating and Connecting Repositories I created a new "DevOps" repository on GitHub and successfully connected my local repository to this remote repository. Now, my local and remote repositories are synced up!

I even created a new file "Day-02.txt" within the "Devops/Git/" directory and added some valuable content to it.

Task-3: Adding a New Feature in a Separate Branch To add a new feature to our application, I followed these steps:

  1. Created a new " dev " branch from the "master" branch using the command git checkout -b dev.

  2. Added a text file called "version01.txt" inside the "Devops/Git/" directory with the content "This is the first feature of our application."

  3. Committed this change with the message "Added new feature."

  4. Added additional content to "version01.txt" in the "dev" branch and made three more commits with respective messages.

Task-4: Branches and Merging To demonstrate the concept of branches, I created two or more branches and performed various operations, including adding changes to the "dev" branch and merging it into the "master" branch. I also practiced using git rebase to understand the differences it offers.

Task-5: Using Git Stash In this task, I created a new branch and made some changes to it. Before committing the changes, I used git stash to save them temporarily. Later, I switched to a different branch, made some changes, and committed them. Finally, I applied the stashed changes on top of the new commits using git stash pop.

Task-6: Advancing the Development Branch I made further enhancements to the "version01.txt" file in the "dev" branch after reverting to a previous commit. I added three new lines with respective commits to mark each addition.

Task-7: Cherry Pick to Production Branch In the "Production" branch, which originates from the "Master" branch, I cherry-picked the commit "Added feature2.2 in the development branch." Additionally, I made further modifications to the file and committed the changes with the message "Optimized the feature."

I am grateful for the valuable knowledge gained during this journey, and I look forward to diving deeper into DevOps! Stay tuned for more exciting updates! ๐ŸŽ‰๐ŸŒŸ

#DevOps #Git #GitHub #VersionControl #CodingJourney #LearningInProgress

ย