I\'m working in a branch (i.e. design) and I\'ve made a number of changes, but I need to discard them all and reset it to match the repository version. I thought
design
If you don't want any changes in design and definitely want it to just match a remote's branch, you can also just delete the branch and recreate it:
# Switch to some branch other than design $ git br -D design $ git co -b design origin/design # Will set up design to track origin's design branch