How to push only the required files and exclude unnecessary files (e.g., package.json and package-lock.json)? #466
-
As most of the contributors have been pushing unnecessary files, like package files, it is crucial that we adopt a more focused approach. To ensure efficient collaboration, each contributor should push only the files directly addressing the assigned issues. Please specify the steps and code which can solve this problem. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This will undo all the changes for a specific file so that it will not be included in the PR
For Example
This will undo all changes for package.json.
This will undo the changes, now push the PR.
This will bring back the changes in your local repository. |
Beta Was this translation helpful? Give feedback.
This will undo all the changes for a specific file so that it will not be included in the PR
For Example
This will undo all changes for package.json.
This will undo the changes, now push the PR.
Now after pushing the PR use the command
This will bring back the changes in your local repository.