![]() ![]() All you care about is being up to date with the upstream. Perhaps you modified a file to experiment, but you no longer need the modification. In this case, you just want to drop all the uncommitted local changes. you want to download the remote modifications but not apply them yetĮach of the approaches requires a different solution.you care about the changes very much and would like to apply them after the remote changes,.you don't care about the local changes and want to overwrite them,.When you have uncommitted local changes and still want to pull a new version from the remote server, your use case typically falls into one of the following scenarios. Fortunately, there are ways to get out of trouble in one piece! Photo by Sneaky Elbow / Unsplash Different Approaches Since Git only performs merges when there are no uncommitted changes, every time you run git pull with uncommitted changes could get you into trouble. that are not already present in your local checked out branch. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |