Unix terminal download

Git replace local file with master

Nov 20, 2021 · According to my intuition, on any type of fetch command, updating the remote-tracking branches is default behavior. However when git fetch origin master is executed, it has an additional behavior of updating FETCH_HEAD. When git fetch origin master:master is executed, it has an additional behavior of updating local branch ‘master’.