title: Git - Change the file in one branch back to original in main
body: <p>I'm new to git and have a <code>package.json</code> file in branch (let's call it branch1). I want to change this file back to the original one in the main branch.</p>
  <p>I tried <code>git checkout package.json main</code> which didn't work.</p>