- Create your own dynamic web project on Eclipse and name it as you wish
- Create a temporary folder anywhere outside of the eclipse web project folder.
- Copy the following eclipse project metadata files and paste them inside the temporary folder:
- .classpath
- .project
- .settings
- /build
- Delete all the files in your eclipse web project, so the project folder is empty.
- Open the terminal, change the directory to your dynamic web project, and run the following commands:
git init git remote add origin [email protected]:Jay-JaeWoong-Jung/roommate-mgmt.git git pull origin master
- double check your eclipse project is now in sync with the remote repository.
- Then copy over all the eclipse metadata files back to your eclipse project. (the remote repository contains .gitignore files that ignore all the metadata, so git won't track them)
- Make sure your project build path has all of the following:
- Appache Tomcat v9.0 (runtime library)
- EAR Library
- JRE System Library
- Web app Library
we are intentionally ignoring project meta/config files for cross-OS compatibility of the repository; refer to .gitignore
- if push doesn't work, usually it means your local repo isn't up-to-date. I.E. someone else already made changes on remote repo that you don't have in your local git. You need to pull origin before you can push your code. Remember to work inside your pair branch, not on master
markdown syntax can be found below https://confluence.atlassian.com/bitbucketserver/markdown-syntax-guide-776639995.html