Get changes from another branch without affecting current branch at all July 13, 2023 by Tarik do a merge to get the change then cancel the merge but keep modification: git merge --no-ff feature git reset HEAD~1