{"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":9560,"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":"670393307a51681d74806570","content":{"languages":["react"],"difficulty":3},"tags":["javascript","react","ui","ux","circle","uber","frontend interview question","devtools tech","tutorial","frontend challenges","coding challenge","blog","tutorial"],"slug":"how-to-detect-overlapping-circles-in-react-js-uber-frontend-interview-question---qid---ixSxPTedmz1CyVZSab1N","title":"How to detect overlapping circles in React.js? Uber Frontend Interview Question","questionId":"ixSxPTedmz1CyVZSab1N"},{"_id":"642be8c76577005718b848a8","content":{"languages":["html","react"],"difficulty":1},"tags":["frontend","ui","ux","progress bars","uber","frontend interview question","reactjs","devtools tech","system design","frontend masters","coding","javascript","advanced javascript"],"slug":"how-to-animate-multiple-progress-bars-in-a-sequence-or-uber-frontend-interview-question-or-react-js-or-javascript-or-html-or-css---qid---0pJDOORWvcix4ymghsB9","title":"How to animate multiple progress bars in a sequence? | Uber Frontend Interview Question | React.js | JavaScript | HTML | CSS","questionId":"0pJDOORWvcix4ymghsB9"},{"_id":"68f0a6a1e901f595bb24c2ab","content":{"languages":["javascript","typescript"],"difficulty":1},"tags":["javascript","ui","ux","some","array","polyfills","devtools tech","programming question","coding question"],"slug":"how-to-implement-custom-array-prototype-some-method---qid---sdnHxbS34ijKiIoL8vmJ","title":"How to implement custom Array.prototype.some method?","questionId":"sdnHxbS34ijKiIoL8vmJ"},{"_id":"5ea5c137dae82663ed99f7cb","content":{"difficulty":1,"languages":"javascript"},"tags":["javascript","node.js","interview","frontend","problem solving","logical","output based","looping"],"title":"What would be the output of the following code snippet?","questionId":"L2LcihjiBRUehVFRPDOR","slug":"what-would-be-the-output-of-the-following-code-snippet---qid---L2LcihjiBRUehVFRPDOR"},{"_id":"69e8ca9df93997aa6f602cd6","content":{"languages":["javascript","typescript"],"difficulty":2},"tags":["javascript","ui","ux","dsa","frontend interview questions","uber","coding challenge"],"slug":"count-pair-sums-with-updates---qid---vakaHbs8bDxaOfBx4QL3","title":"Count Pair Sums with Updates","questionId":"vakaHbs8bDxaOfBx4QL3"}],"resources":[{"_id":"5f2af665f81d6d48b5c4cd05","content":{"difficulty":2,"domain":16,"type":2},"tags":["data structures","algorithms","dynamic programming","interviews","interview preparation","code","programming","backend","frontend"],"slug":"dynamic-programming-playlist-or-coding-or-interview-questions-or-tutorials-or-algorithm---rid---Gk2BameUXnvutf6jDwCA","title":"Dynamic Programming Playlist | Coding | Interview Questions | Tutorials | Algorithm","resourceId":"Gk2BameUXnvutf6jDwCA"},{"_id":"5f1ff867cbec5f7ffc0c2fb6","content":{"difficulty":2,"domain":2,"type":1},"tags":["javascript","frontend","reactjs","profiling","performance","chrome","devtools","advanced frontend"],"slug":"profiling-react-performance-with-react-16-and-chrome-devtools---rid---Oj6vkw9ga5NIqw4266kr","title":"Profiling React performance with React 16 and Chrome Devtools.","resourceId":"Oj6vkw9ga5NIqw4266kr"},{"_id":"61fe386fe12bce537863cbb4","content":{"difficulty":4,"domain":1,"type":1,"isInternal":true},"tags":["javascript","frontend","coding","scoping","closure","lexcial scope","devtools","tutorial","js fundamentals"],"slug":"scoping-in-javascript-explained-or-javascript-interview-questions---rid---Iahbvfkg5H86a6KL8yBD","title":"Scoping in JavaScript Explained | JavaScript Interview Questions","resourceId":"Iahbvfkg5H86a6KL8yBD"},{"_id":"639222ff937c6f54916670ee","content":{"difficulty":3,"domain":2,"type":2,"isInternal":false},"tags":["frontend","javascript","react","interview question","coding","programming","custom hooks","react hooks","ui","ux","blog","tech"],"slug":"how-to-create-useprevious-react-custom-hook-or-advanced-react-js-or-javascript-interview-question---rid---Dwblxb3EWYYxTG2vmwEp","title":"How to create usePrevious React Custom Hook? | Advanced React.js | JavaScript Interview Question","resourceId":"Dwblxb3EWYYxTG2vmwEp"},{"_id":"5f1dedb6cbec5f7ffc0c2fb2","content":{"difficulty":2,"domain":2,"type":1,"isInternal":true},"tags":["reactjs","frontend","javascript","setstate","ui","code","devtools","react setstate"],"slug":"understanding-react-setstate---rid---eA1TtSO9ANI5xpBvb0nA","title":"Understanding React setState","resourceId":"eA1TtSO9ANI5xpBvb0nA"}]}}