{"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":7397,"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":"69dc7f347aa3689d795a5f8d","content":{"languages":["javascript","typescript"],"difficulty":3},"tags":["javascript","ui","ux","devtools tech","coding","frontend","interview"],"slug":"number-to-words-converter---qid---HDauTCaVO4KLQuobnvQx","title":"Number to Words Converter","questionId":"HDauTCaVO4KLQuobnvQx"},{"_id":"643c21086577005718b99cde","content":{"languages":["react"],"difficulty":4},"tags":["frontend","coding","devtools tech","pair programming","debugging round","questions","code bugs","debugging interview questions","codemasters","egghead","frontend masters"],"slug":"debug-and-fix-the-feedback-modal-component-in-react-js-or-frontend-coding-challenge-or-debugging-round-or-javascript---qid---jCqxBMNpGb94s8DXYat5","title":"Debug and Fix the Feedback Modal Component in React.js | Frontend Coding Challenge | Debugging Round | JavaScript","questionId":"jCqxBMNpGb94s8DXYat5"},{"_id":"68d3ef6ddb42322dc8303729","content":{"languages":["react","html"],"difficulty":2},"tags":["javascript","ui","ux","devtools tech","makemytrip","coding","frontend coding challenge"],"slug":"build-a-typing-speed-test-component---qid---dWAbFdPLCiHkx6WsJ1fu","title":"Build a Typing Speed Test Component","questionId":"dWAbFdPLCiHkx6WsJ1fu"},{"_id":"5f6c9b076d3cda64e470c3f7","content":{"difficulty":1,"languages":"javascript"},"tags":["javascript","new operator","js fundamentals","nodejs"],"slug":"what-would-be-the-output-new-operator-or-explicit-non-primitive-return---qid---HPR0rDQaDbTWB6BjHeY8","title":"What would be the output? [New Operator | Explicit Non Primitive Return]","questionId":"HPR0rDQaDbTWB6BjHeY8"},{"_id":"67cc043127b2785b41f18eb0","content":{"languages":["react","html"],"difficulty":2},"tags":["javascript","ui","ux","interview","drag and drop","questions","interview questions","frontend interview"],"slug":"how-to-create-a-drag-and-drop-list-component---qid---C5yqJ5JJaTUY6en6Bs1R","title":"How to create a Drag and Drop List Component?","questionId":"C5yqJ5JJaTUY6en6Bs1R"}],"resources":[{"_id":"6967584e132ce4e954b254eb","content":{"difficulty":4,"domain":2,"type":1,"isInternal":true,"languages":[]},"tags":["javascript","ui","ux","devtools tech","coding","blinkit","interview experience","frontend"],"slug":"blinkit-frontend-interview-experience-sde-1---rid---j7MSrpMfo09YVcBzRXYa","title":"Blinkit Frontend Interview Experience (SDE 1)","resourceId":"j7MSrpMfo09YVcBzRXYa"},{"_id":"662a9bac4079503047f8376b","content":{"difficulty":4,"domain":2,"type":1,"isInternal":true,"languages":[]},"tags":["javascript","frontend","code","react","list performance","ui","ux","devtools tech","microsoft"],"slug":"how-to-improve-list-rendering-performance-in-a-react-app-or-list-virtualization-or-microsoft-frontend-interview-question---rid---AgCMhGtE8GZmJa5cKY71","title":"How to improve list rendering performance in a React app? | List Virtualization | Microsoft Frontend Interview Question","resourceId":"AgCMhGtE8GZmJa5cKY71"},{"_id":"69831e01895fc3bf013c2a19","content":{"difficulty":4,"domain":2,"type":1,"isInternal":true,"languages":[]},"tags":["javascript","ui","ux","devtools tech","coding","frontend interview","coding rounds","tutorial","frontend interview experience"],"slug":"microsoft-frontend-interview-experience---rid---XTc4tJoPszAFovxvJjRX","title":"Microsoft Frontend Interview Experience","resourceId":"XTc4tJoPszAFovxvJjRX"},{"_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"},{"_id":"652d64e4d5ab2876a4ca213c","content":{"difficulty":4,"domain":2,"type":1,"isInternal":false,"languages":["undefined"]},"tags":["frontend","coding","interviews","experience","devtools tech","blog","medium"],"slug":"zeta-interview-experience-sde-1-frontend---rid---2RwNAPVBDsL25iOQe1l0","title":"Zeta Interview Experience SDE-1 FrontEnd","resourceId":"2RwNAPVBDsL25iOQe1l0"}]}}