Okay so now I think that you know what is GIT and why it is used if you don't know I recommend reading my previous post
First head over to https://git-scm.com/download/win/ this will start the download of the latest version of GIT. After the file is downloaded follow these steps.
Now press next and continue with the installer and your good to go.
For Linux there are different methods for different distributions so head over to https://git-scm.com/download/linux/ and do the steps given there for your distro of Linux.
Install homebrew from here https://brew.sh/
brew install git
To test if it is installed properly run this
If it is printing the version then Congrats !!🎉🎊🥳 it is installed successfully.
So I am ending this post here bye and have a nice day!
Any queries ask me in the discussions