Git: Difference between revisions

122 bytes added ,  4 December 2020
→‎Reset the branch to a specific point in the past: Reset the branch to a specific branch on a remote
→‎Reset the branch to a specific point in the past: Reset the branch to a specific branch on a remote
Line 345: Line 345:


--hard parameter also updates the working directory. Reset shouldn't be used in a group project on a remote repository because of its potential for confusion.
--hard parameter also updates the working directory. Reset shouldn't be used in a group project on a remote repository because of its potential for confusion.
== Reset the branch to a specific branch on a remote ==
<source lang="bash">
$ git reset --hard origin/master
</source>


== Ignore files ==
== Ignore files ==