title: Git branching and reset head of master
body: <p>Git</p>
  
  <p>Step -1: I made few un-commit changes to master branch at local machine.</p>
  
  <p>Step -2: Later i decided to create separate branch for those changes because i notice these changes are much bigger and has become a feature.</p>
  
  <p>Step -3: I created a branch switch to that branch made my changes.</p>
  
  <p>Step 04: Now i want to merge my newly created branch to master, but i still had few un-commit in master, i tried to reset hard my origin/master branch and my all newly branch changes and master branch changes are gone :(</p>
  
  <p>I also noticed what ever changes i was making in newly created branch they were also appearing in master branch.</p>
  
  <p>I thought local branch and master are unsync branches. please help me to understand the concept that why did that happen. </p>