4,461
edits
→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 == |