solve error: Your local changes to the following files would be overwritten by merge
In Berlin, we will all ignore our first suggested location files.
1 | [ Sun@webserver2 demo]$ git update-index --assume-unchanged <filename&> |
But the other people in Berlin, if they don’t mind installing the file, push it to Length 20179; then, when we get the code, we will be rewarded.
1
2 3 4 5 6 7 8 9 10 11 12 13 |
[ Sun@webserver2 demo]$ git add .
|
Consideration: your local changes will be merged with 30422nd; and you will be covered with 30422nd;
solution:
1.Removal 38144;
1 | [ Sun@webserver2 demo]$ git update-index --no-assume-unchanged config.ini |
2. Read the content from the latest commit, back up the current workspace content, and save the current workspace content to the Git stack
1
2 3 |
[ Sun@webserver2 demo]$ git stash
|
3pulllanguage 2017979; libraries code
1
2 3 4 |
[ Sun@webserver2 demo]$ give pull
|
4.from Git26632;, read the latest saved contents, relative contents of the working area
1
2 3 |
[ Sun@webserver2 demo]$ give pop
|
_Other Organiser
1
2 3 4 5 6 7 8 |
[ Sun@webserver2 demo]$ vim config.ini
|
<<<<<<<< Updated upstream until======In the days of January 2017979;libraries pull 下来individuals’ contents,======to&>&>&>&>&>&>&> Stashed changesin our local files, now we can reach 21024;, except for others, just keep our contents.This is a test file
6. Copy the file to the latest version, save the contents
1
2 3 4 5 |
[ Sun@webserver2 demo]$ returned HEAD config.ini
|
7. Ignore and complete!
1 | [ Sun@webserver2 demo]$ git update-index --assume-unchanged config.ini |
8. Do not forget to delete Git26632;
1 | [ Sun@webserver2 demo]$ give the stash drop |
Similar Posts:
- Git Pull Error: Please specify which branch you want to merge with.
- Git | fatal: refusing to merge unrelated histories [How to Solve]
- [Solved] Git pull fatal: refusing to merge unrelated histories
- error: src refspec master does not match any [How to Solve]
- git pull There is no tracking information for the current branch.
- Git pull does not specify an error message for the branch
- [Solved] Git pull error: You have not concluded your merge (MERGE_HEAD exists)
- IDEA Could Not pull Codes to Local Error: Can’t Update No tracked branch configured for branch master or the branch doesn’t exist.
- [Solved] Git conflict Error: commit your changes or stash them before you can merge
- Git error: requested URL returned error: 403