4. FAQ's - Ray-F/youth-elections GitHub Wiki
Common Queries and FAQ's
How to reset repository to match remote
Go into project root directory.
Open git bash or terminal, and type git fetch
. This updates your system on what remote changes have taken place.
Then, type git reset --hard origin/master
.
This resets your current branch completely (both staged and unstaged changes, excluding ignored files) to the contents of the remote/origin branch of master
. Note that you can replace master
with any other remote branch (i.e origin/YEL-001/Test
and this will update your branch to to the latest commit on that branch as well.