Maven/git issue fixed examples

1. When maven compile code, there are too much resource files downloading, how to avoid it every time

mvn clean compile -o install

2. When met ‘Changes not staged for commit’ in ‘git commit’ for review issue
Cases are
1) when pull from remote branch1
2) Modify and submit, then push to remote branch2
3) Remote branch2 updated some files, and local branch modified
4) Cant submit and push to remote branch2 now

Solution steps:
1) Check out new local branch from remote branch2
2) Modify new local branch and submit & push to remote branch2
3) After merge to remote branch1(e.g. master branch), remove old local branch and checkout from remote branch
4) Remove the local branch which pushes to remote branch2

Leave a Reply

Your email address will not be published. Required fields are marked *