SAP Web IDE - How to let gitignore file ".user.project.json"?

Question:

Hello everyone,
I have one weird problem with git system in SAP Web IDE. As you can see in below screenshot, I have one file ".user.project.json" that has been changed. **I don't want to include this file into my git repository.** I tried several ways to add the name file into .gitignore file but it does not work. The file still added to the repository.


The ".user.project.json" is used to store user data in web IDE only, no need to be added to the project git repository. When many developers work on the same project and push the ".user..." file along with the commits, it will cause conflict because each developer's ".user..." file is different. How can I surely add this ".user.project.json"?

Thank you in advance,

Victor.

Answer:


After some hour looking for the answer. I've found the solution:
1. User git panel to un-track & ignore the file you want. (in this case is ".user.project.json")



2. Commit all the file & push to the remote repository.

(if you commit to local repository only & change in .gitignore, like it did, it will not work because the file in remote repository is still exist, which make the local repository still keep the file tracked & not ignored)

---V---

Nhận xét

Bài đăng phổ biến từ blog này

Tại sao lại chụp ảnh theo bố cục 1/3 ?

[sapui5] Best Practice in sapui5 development

Implement Search field with case-INSENSITIVE by SAP UI5