I work on the same project at home and at work through the GitHub add-in in Visual Studio. No experience, read only a couple of articles on the Internet on this topic. At home, I commit and push to send the project to GitHub. At work, the pull command does not allow updating the project, a message appears:

Cannot pull because there are uncommitted changes. Commit, stash, or undo your changes before retrying.

enter image description here It seems that TeamExplorer advises to uncomment the code at work, so as not to lose after the merger. Since I am working alone on a project, all the code variations that interest me are already on GitHub, I’m happy with the complete removal of the remaining local version at work.

What do you need to do in steps to install the code from the githab on your computer as it is there?

  • one
    He says that you have no fixed local changes. Make a commit before pull - Nikita Umnov

1 answer 1

You can execute to update your repository:

git commit -m "Your commit text" git pull 

Either delete the current repository directory and re-clone it from GitHub:

 git clone example.com # example.com - Remote repo url