{"resource":{"author":{"id":"3eh0kijZwMrHum8TkMqX","name":"Devtools Tech","username":"devtoolstech"},"content":{"link":null,"difficulty":1,"domain":1,"type":1,"isInternal":true,"body":"If we want to revert the file to its state in the `master/main` branch then we can use the following git command\r\n\r\n```\r\ngit checkout origin/master path-to-file\r\n```\r\n\r\n## Example\r\n\r\n```\r\ngit checkout origin/master ./kubernetes/production/values.yml\r\n```","languages":["javascript"],"editorConfig":"undefined"},"stats":{"views":8370,"used":0,"likes":0},"description":"","published":true,"isActive":true,"tags":["git","version control","beginner tip","devtools","frontend","coding","fullstack","backend","programing","bitbucket","github","gitlab","tutorial","tips","tricks"],"slug":"how-to-reset-a-single-file-from-the-feature-branch-to-the-remote-main-branch---rid---uCa6FoeftG05yLgJS8pD","isPremium":false,"categories":[],"requires":[],"_id":"652501a4d5ab2876a4c96901","title":"How to reset a single file from the feature branch to the remote main branch?","resourceId":"uCa6FoeftG05yLgJS8pD","createdAt":1696924068911,"modifiedAt":1696927541270},"currentUser":null,"isOwner":false,"recommendations":{"questions":[{"_id":"63636d7cc958c137b34c19f8","content":{"languages":["html","react"],"difficulty":1},"tags":["","javascript","frontend coding challenges","ui","ux","interview","devkode","frontend masters","star challenge","star widget","mockup","functional spec","javascript interview question","machine coding round","color spotter"],"slug":"create-a-color-spotter-game-or-frontend-coding-challenge-or-devkode-dom-challenge-or-javascript-or-html-or-css-or-reactjs---qid---XvClVE1kLeMD86qMPGtD","title":"Create a Color Spotter Game | Frontend Coding Challenge | DevKode DOM Challenge | JavaScript | HTML | CSS | ReactJS ","questionId":"XvClVE1kLeMD86qMPGtD"},{"_id":"625996d41195627fe9f0bfb5","content":{"languages":["react","html"],"difficulty":1},"tags":["reactjs","javascript","machine coding round","flipkart","startups","interview question","ui question","password checker","how to build","frontend masters","egghead","codedamn","leetcode","facebook interview question","devtools tech"],"slug":"how-to-build-a-password-strength-checker-in-react-js-or-frontend-interview-question-or-javascript---qid---tQR3mRIXsSK1tDfCliYj","title":"How to build a Password Strength Checker in React.js | Frontend Interview Question | JavaScript ","questionId":"tQR3mRIXsSK1tDfCliYj"},{"_id":"65ad10f98f7afe4225332ec3","content":{"languages":["react","html"],"difficulty":4},"tags":["javascript","frontend","code","ui","ux","devtools tech","frontend coding challenge","react","ui game","interview question","ms"],"slug":"build-country-capital-game-or-microsoft-frontend-interview-question-or-javascript-or-react-js---qid---yPb5g7MLCSf6j2F3qjqj","title":"Build Country Capital Game | Microsoft Frontend Interview Question | JavaScript | React.js","questionId":"yPb5g7MLCSf6j2F3qjqj"},{"_id":"64f86accd5ab2876a4c49e4c","content":{"languages":["react","html"],"difficulty":3},"tags":["","javascript","react","frontend","code","devtools tech","tutorial","frontend interview questions","youtube","gojek","gif","giphy","gif search","web app","interview question","frontend coding challenge"],"slug":"build-a-gif-search-engine-or-frontend-coding-challenge-or-react-js-or-javascript---qid---Yrz7qTiDTIyReYmwrLiA","title":"Build a GIF Search Engine | Frontend Coding Challenge | React.js | JavaScript","questionId":"Yrz7qTiDTIyReYmwrLiA"},{"_id":"63637b56c958c137b34c1ae3","content":{"languages":["html","react"],"difficulty":1},"tags":["","javascript","frontend coding challenges","ui","ux","interview","devkode","frontend masters","star challenge","star widget","mockup","functional spec","javascript interview question","machine coding round","progress bar"],"slug":"create-a-progress-bar-or-frontend-coding-challenge-or-devkode-dom-challenge---qid---87NJhuSLBoWzABQKqFBo","title":"Create a Progress Bar | Frontend Coding Challenge | DevKode DOM Challenge","questionId":"87NJhuSLBoWzABQKqFBo"}],"resources":[{"_id":"69234dfebf1a48f85e0d2584","content":{"difficulty":1,"domain":2,"type":2,"isInternal":false,"languages":[]},"tags":["javascript","large lists","virtualization","frontend","performance","web","frontend system design"],"slug":"how-to-render-large-lists-in-react---rid---TC8vdF4wbZwju6fkLIwO","title":"How to render LARGE lists in React?","resourceId":"TC8vdF4wbZwju6fkLIwO"},{"_id":"6a12e44d4b3e6d922c54a05e","content":{"difficulty":1,"domain":1,"type":1,"isInternal":true,"languages":[]},"tags":["javascript","cls","core web vitals","articles","image optimisation","blogpost","tutorial","web performance"],"slug":"measuring-image-performance-with-core-web-vitals---rid---RusX5eeoO7vGFaLdutG5","title":"Measuring Image Performance with Core Web Vitals","resourceId":"RusX5eeoO7vGFaLdutG5"},{"_id":"5f1dd731cbec5f7ffc0c2fab","content":{"difficulty":2,"domain":3,"type":1,"isInternal":true},"tags":["node.js","express","rest","api","framework","backend","tools","devtools","framework development","build express"],"slug":"build-your-own-expressjs-or-part-2---rid---negw30VulwpaVLRpxxMl","title":"Build your own expressjs | Part 2","resourceId":"negw30VulwpaVLRpxxMl"},{"_id":"6731bf5cd34d7f4b8cccbdec","content":{"difficulty":4,"domain":1,"type":1,"isInternal":true,"languages":[]},"tags":["javascript","frontend","coding","ui","ux","developer tools","youtube videos"],"slug":"how-to-become-a-better-software-engineer---rid---4lmB97aZrn9z5q00FKZz","title":"How to become a better Software Engineer?","resourceId":"4lmB97aZrn9z5q00FKZz"},{"_id":"652501a4d5ab2876a4c96901","content":{"difficulty":1,"domain":1,"type":1,"isInternal":true,"languages":["javascript"]},"tags":["git","version control","beginner tip","devtools","frontend","coding","fullstack","backend","programing","bitbucket","github","gitlab","tutorial","tips","tricks"],"slug":"how-to-reset-a-single-file-from-the-feature-branch-to-the-remote-main-branch---rid---uCa6FoeftG05yLgJS8pD","title":"How to reset a single file from the feature branch to the remote main branch?","resourceId":"uCa6FoeftG05yLgJS8pD"}]}}