I want to pull a branch(master branch) to current repository, and replace the file that is existing, not just merge the file, the command git pull is not appropriate to my needs, how to do that?
I want to pull a branch(master branch) to current repository, and replace the file
Share
Why do you think it isn’t appropriate?
git pullwill update your branch to the same state of the remote repository, so if the file you have is at a newer version on the remote, it will be replaced.EDIT
If after the pull, merges are done with your local changes, you can reset to the state of remote repository with the following: