{"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":9609,"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":"68270e23c721dd772d9362d8","content":{"languages":["javascript","typescript"],"difficulty":1},"tags":["breadcrumbs","coding","interview","zepto","frontend interview question","ui","ux","programming","algorithms","dsa","object traversal","dom traversal"],"slug":"breadcrumb-chain-problem---qid---KO1sGon4cWLhj8BEuuKk","title":"Breadcrumb Chain Problem","questionId":"KO1sGon4cWLhj8BEuuKk"},{"_id":"67e53e9c347ebdb1a74b907c","content":{"languages":["javascript","typescript"],"difficulty":2},"tags":["javascript","amazon","frontend interview question","ui","ux","javascript promises","blog","amazon interview question"],"slug":"implement-promisify-polyfill---qid---GFqT2ainSIGaPNODqoDe","title":"Implement Promisify Polyfill","questionId":"GFqT2ainSIGaPNODqoDe"},{"_id":"6a01a41f8957c8c5cb9e3041","content":{"languages":["javascript","typescript"],"difficulty":1},"tags":["javascript","ui","ux","devtools tech","coding","frontend","interview challenge"],"slug":"chainable-currency-calculator---qid---7YLQzlFTbLwp3MfpQNkH","title":"Chainable Currency Calculator","questionId":"7YLQzlFTbLwp3MfpQNkH"},{"_id":"6360f8abc958c137b34bf753","content":{"languages":["html","react"],"difficulty":1},"tags":["","javascript","frontend","pixel art","grid","css","flex","devtools tech","devkode","coding challenge","frontend challenge","ui","ux","codedamn","frontend masters","egghead","hackerrank"],"slug":"create-pixel-art-grid-or-frontend-coding-challenge-or-devkode-dom-challenge---qid---mWQDxDiR3VirKPTmt7bF","title":"Create Pixel Art Grid | Frontend Coding Challenge | DevKode DOM Challenge","questionId":"mWQDxDiR3VirKPTmt7bF"},{"_id":"645e244cd12c1e2402019e67","content":{"languages":["javascript","typescript"],"difficulty":1},"tags":["frontend","code","programming","lodash","polyfill","lodash once","javascript interview question","ui","ux","devtools tech","codedamn","egghead","frontend masters","problem solving","frontend interview questions","underscore","geeksforgeeks","rate limit","lodash before","limit js function invocation"],"slug":"implement-a-function-that-accepts-a-callback-and-restricts-its-invocation-to-at-most-n-times-or-lodash-polyfills-or-frontend-problem-solving---qid---ge3cwzQQrMlXt6VwDpNg","title":"Implement a function that accepts a callback and restricts its invocation to at most N times | Lodash Polyfills | Frontend Problem Solving","questionId":"ge3cwzQQrMlXt6VwDpNg"}],"resources":[{"_id":"5f62fc016d3cda64e470c3f3","content":{"difficulty":4,"domain":2,"type":2},"tags":["javascript","closures","frontend","js fundamentals","devtools","interview concept"],"slug":"javascript-closures-or-lexical-environment-or-interview-question-or-saloni-kathuria---rid---OlEK5KKN3yZeASgPJfTm","title":"JavaScript Closures | Lexical Environment | Interview Question | Saloni Kathuria","resourceId":"OlEK5KKN3yZeASgPJfTm"},{"_id":"5f1dedf2cbec5f7ffc0c2fb3","content":{"difficulty":2,"domain":2,"type":1,"isInternal":true,"languages":[]},"tags":["node.js","javascript","temporal dead zone","js tdz","es6","scoping","js","advanced javascript","advanced frontend"],"slug":"understanding-temporal-dead-zone-in-javascript---rid---0KEfke08AOZuNXVxRXPW","title":"Understanding Temporal Dead Zone in JavaScript","resourceId":"0KEfke08AOZuNXVxRXPW"},{"_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":"6a12f6b84b3e6d922c54a4bf","content":{"difficulty":1,"domain":1,"type":1,"isInternal":true,"languages":[]},"tags":["javascript","image","optimisations","ui","ux","devtools tech","tutorial","article","blog","image optimisations"],"slug":"image-cdns-and-delivery-infrastructure---rid---77JRLgs18QdXzu3rgtT2","title":"Image CDNs and delivery infrastructure","resourceId":"77JRLgs18QdXzu3rgtT2"},{"_id":"692339ccbf1a48f85e0d1d38","content":{"difficulty":4,"domain":2,"type":2,"isInternal":false,"languages":[]},"tags":[""],"slug":"quick-way-to-fix-uncompressed-javascript/css-files-devtools-trick---rid---bz9xmaeXqGkkZaLgj3tL","title":"Quick way to fix Uncompressed JavaScript/CSS Files (DevTools Trick)","resourceId":"bz9xmaeXqGkkZaLgj3tL"}]}}