Last active
May 5, 2025 07:32
-
-
Save szemate/6fb69c8e3d8cce3efa9a6c922b337d98 to your computer and use it in GitHub Desktop.
Revisions
-
szemate revised this gist
Jul 27, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -32,7 +32,7 @@ It is not possible to resolve conflicts of package-lock.json in GitHub's merge t git add --update git commit ``` :warning: Make sure not to commit the `*.orig` files! 1. If everything looks fine, push to GitHub: ``` git push -
szemate revised this gist
Jun 30, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,7 +20,7 @@ It is not possible to resolve conflicts of package-lock.json in GitHub's merge t Automatic merge failed; fix conflicts and then commit the result. ``` 1. Open your editor (e.g. VSCode) and: * Carefully resolve conflicts in `package.json` (if there is any) * **Ignore** the conflicts in `package-lock.json` 1. Install packages, which will re-generate `package-lock.json`: ``` -
szemate revised this gist
Jun 30, 2022 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,8 +20,8 @@ It is not possible to resolve conflicts of package-lock.json in GitHub's merge t Automatic merge failed; fix conflicts and then commit the result. ``` 1. Open your editor (e.g. VSCode) and: * Carefully resolve any conflict in `package.json` (if there is any) * **Ignore** the conflicts in `package-lock.json` 1. Install packages, which will re-generate `package-lock.json`: ``` npm install -
szemate revised this gist
Jun 30, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -32,7 +32,7 @@ It is not possible to resolve conflicts of package-lock.json in GitHub's merge t git add --update git commit ``` :warning: Make sure not to commit the `*.orig` files! **DO NOT** use `git add .`!!! 1. If everything looks fine, push to GitHub: ``` git push -
szemate revised this gist
Jun 30, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -32,7 +32,7 @@ It is not possible to resolve conflicts of package-lock.json in GitHub's merge t git add --update git commit ``` Make sure not to commit the `*.orig` files! **DO NOT** use `git add .`!!! 1. If everything looks fine, push to GitHub: ``` git push -
szemate revised this gist
Jun 30, 2022 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,12 +2,12 @@ It is not possible to resolve conflicts of package-lock.json in GitHub's merge tool and you need to do a manual merge. 1. Update the `master` branch with the latest changes: ``` git checkout master git pull ``` 1. Merge your feature branch into `master`: ``` git merge mybranch ``` -
szemate revised this gist
Mar 17, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -27,7 +27,7 @@ It is not possible to resolve conflicts of package-lock.json in GitHub's merge t npm install ``` 1. "Test drive" your application to make sure the conflicts in `package.json` have been resolved correctly. 1. If the application is able to start up (i.e. there are no missing dependencies), add all changes and finish the merge: ``` git add --update git commit -
szemate revised this gist
Mar 17, 2022 . 1 changed file with 1 addition and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,10 +26,7 @@ It is not possible to resolve conflicts of package-lock.json in GitHub's merge t ``` npm install ``` 1. "Test drive" your application to make sure the conflicts in `package.json` have been resolved correctly. 1. If the application is starting (i.e. there are no missing dependencies), add all changes and finish the merge: ``` git add --update -
szemate revised this gist
Mar 17, 2022 . 1 changed file with 8 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,12 +20,16 @@ It is not possible to resolve conflicts of package-lock.json in GitHub's merge t Automatic merge failed; fix conflicts and then commit the result. ``` 1. Open your editor (e.g. VSCode) and: * Carefully resolve any conflict in `package.json` * Ignore the conflicts in `package-lock.json` 1. Install packages, which will re-generate `package-lock.json`: ``` npm install ``` 1. "Test drive" your application to make sure the conflicts in `package.json` have been resolved correctly: ``` npm start ``` 1. If the application is starting (i.e. there are no missing dependencies), add all changes and finish the merge: ``` git add --update -
szemate revised this gist
Mar 17, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,7 +19,7 @@ It is not possible to resolve conflicts of package-lock.json in GitHub's merge t CONFLICT (content): Merge conflict in package.json Automatic merge failed; fix conflicts and then commit the result. ``` 1. Open your editor (e.g. VSCode) and: * Carefully resolve any conflict in `package.json`. * Ignore the conflicts in `package-lock.json`. 1. Install packages, which will re-generate `package-lock.json`: -
szemate revised this gist
Mar 17, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # How to resolve package-lock.json conflicts It is not possible to resolve conflicts of package-lock.json in GitHub's merge tool and you need to do a manual merge. 1. Update the `main` branch with the latest changes: ``` -
szemate revised this gist
Mar 17, 2022 . 1 changed file with 27 additions and 27 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,36 +3,36 @@ It is not possible to resolve conflicts of package-lock.json in GitHub and you need to do a manual merge. 1. Update the `main` branch with the latest changes: ``` git checkout main git pull ``` 1. Merge your feature branch into `main`: ``` git merge mybranch ``` You will see something like the following message: ``` Auto-merging package-lock.json CONFLICT (content): Merge conflict in package-lock.json Auto-merging package.json CONFLICT (content): Merge conflict in package.json Automatic merge failed; fix conflicts and then commit the result. ``` 1. Open VS code and: * Carefully resolve any conflict in `package.json`. * Ignore the conflicts in `package-lock.json`. 1. Install packages, which will re-generate `package-lock.json`: ```npm install``` 1. "Test drive" your application to make sure the conflicts in `package.json` have been resolved correctly: ```npm start``` 1. If the application is starting (i.e. there are no missing dependencies), add all changes and finish the merge: ``` git add --update git commit ``` (Make sure not to commit the `*.orig` files!) 1. If everything looks fine, push to GitHub: ``` git push ``` -
szemate created this gist
Mar 17, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,38 @@ # How to resolve package-lock.json conflicts It is not possible to resolve conflicts of package-lock.json in GitHub and you need to do a manual merge. 1. Update the `main` branch with the latest changes: ``` git checkout main git pull ``` 1. Merge your feature branch into `main`: ``` git merge mybranch ``` You will see something like the following message: ``` Auto-merging package-lock.json CONFLICT (content): Merge conflict in package-lock.json Auto-merging package.json CONFLICT (content): Merge conflict in package.json Automatic merge failed; fix conflicts and then commit the result. ``` 1. Open VS code and: * Carefully resolve any conflict in `package.json`. * Ignore the conflicts in `package-lock.json`. 1. Install packages, which will re-generate `package-lock.json`: ```npm install``` 1. "Test drive" your application to make sure the conflicts in `package.json` have been resolved correctly: ```npm start``` 1. If the application is starting (i.e. there are no missing dependencies), add all changes and finish the merge: ``` git add --update git commit ``` (Make sure not to commit the `*.orig` files!) 1. If everything looks fine, push to GitHub: ``` git push ```