Hey YouTube Lovers,
✤ Welcome to “ForTheGeeks” ✤
In this video, we will talk about how we can "Git reset to head".
When working in a team and collaborating source code with other developers in a team project, it more than certain for developers to create branches, add files and stage them for commits when they are ready.
Having said that, in some cases, you might realize that the changes that you made weren't good enough and you have messed it up.
Say ,you modified some files, added and deleted a lot of lines of codes from your files, but you want to go back to how it was . What it means for you is that you want to revert the changes that you made and go back to the files that you had before you made your changes (from central repo)
This technique is called “reset to HEAD” and it is quite a powerful tool for developers to use.
In this tutorial, we are going to see how you can do that. I will give a demo where I change a file , add it and then revert to a version from central repository
Pushing to central server is important because that is how you can collaborate source code with other developers
Commands used in this video
git reset --hard @{u} //shortcut for upstream
git log
This video is part of my "Azure DevOps Tutorial". The idea of the whole tutorial is to make you understand what DevOps is and what problems
it's trying to solve. At the end of the tutorial, I reckon you will have good understanding of Azure DevOps and would be ready to explore more (as learning never ends).
This whole tutorial will also help you in clearing Azure DevOps (AZ-400) certification as it covers most of the important topics. (Please note : NOT all topics of AZ-400 certification but MOST)
🔰 Topics that we will learn:
What is Azure DevOps
Managing Tenant
Source Control
CI
CD
I created a separate video where I explained my experience on AZ-400 certification. Link to that video below:
🎬 • Azure DevOps Beginner to Expert Tutorial |...
I hope you found this video helpful and if you did please give me a thumbs up and don’t forget to subscribe to my channel. Channel link below
YTC link- https://www.youtube.com/c/ForTheGeeks...
Also I write blogs on many technical and programming languages.
✔ follow my blogs below
🌐 blogs - www.manjustechblog.com
🌐 Medium - / vnmshenoy
==============================================
Watch my previous videos
🔰 How To Delete Azure AD Tenant - The Easy Way || ForTheGeeks
🎬 • How To Delete Azure AD Tenant - The Easy W...
🔰 What is Continuous Deployment in Azure and a Quick CICD for Web Apps Tutorial
🎬 • What is Continuous Deployment in Azure an...
🔰 How to implement Azure DevOps For Continuous Delivery
🎬 • How to Implement Azure DevOps for Continuo...
🔰 How to implement Azure DevOps For Continuous Delivery
🎬 • Basics on how and why to use cost manageme...
==============================================
#ForTheGeeks #AzureDevopsTutorial #azuredevopsExplained #WhyDevOps #WhyAzureDevops #AzureRepos #ContinuousIntegration #ContinuousDeployment #azure #devops #forthegeeks #devopsexplainedforthegeeks #forthegeekstutorial #azuredevopsexplainedforthegeeks #AzureDevOpstutorial #devopswithforthegeeks #learndevopsforthegeeks #azuredevopsexplained #forthegeeksazure #devopsforthegeeks
🔰 Note
Please note that the views expressed are mine alone.