run specific command without sudo inside script running with sudo bash
<p>I have a <code>bash</code> script which I'm running with <code>sudo</code>: <code>sudo NewScript</code></p>

<p>Inside the script, I have a <code>git</code> command which I don't want to run with <code>sudo</code>. Currently, since the entire script is run with <code>sudo</code> this command also runs with <code>sudo</code> and that's what I would like to suppress.</p>

<p>Is such thing possible or do I need to run the script without <code>sudo</code> and add <code>sudo</code> for every command inside the script other than the <code>git</code> command?</p>