Reset/revert a whole branch to another branches state?
One way to achieve this is through git reset. While on branch B execute git reset –hard A Thereafter, branch B points to the head-commit of A. The –hard option resets the index and working tree so that all tracked files are reset to the version in branch A. The old HEAD commit-ID of A … Read more