Showing posts with label MacOS. Show all posts
Showing posts with label MacOS. Show all posts

Wednesday, September 15, 2021

Git: How to remove and Ignore DS_Store file

 When you work with Git  in a Mac. You might notice  .DS_Store file is added to your git commit unintentionally. 


Remove .DS_Store File 

If the  DS_Store File already added to your git report. first remove the file.

find . -name "*.DS_Store" -type f -delete
https://askubuntu.com/questions/377438/how-can-i-recursively-delete-all-files-of-a-specific-extension-in-the-current-di

Ignore .DS_Store File in your git commit

And let git know that you want to use this file for all of your repositories:


Find Details here : git ignore

Tuesday, August 3, 2021

Install Maven on MacOS Catalina

 There might be many ways to install Maven on mac but I found the best way to install maven on mac is to using homebrew:


Step1:  install homebrews (if you don't have already)

Follow this URL : how-to-install-homebrew-on-mac


Step 2 : Install Maven:

https://mkyong.com/maven/install-maven-on-mac-osx/


Extra tips.

Where I can find maven local repository:

>> ~/.m2

5 Strategies for Getting More Work Done in Less Time

Summary.    You’ve got more to do than could possibly get done with your current work style. You’ve prioritized. You’ve planned. You’ve dele...