I can pull changes using git pull, but it merges my local commits. Is there a git rebase equivalent with which I can pull in remote changes?
git pull
git rebase
To change default behavior from merge to rebase In git >= 1.7.9:
merge
rebase
git config --global pull.rebase true
remove global if you want to apply for current repo only