how to update git client to overcome the latest vulnerability? - macos

Recently GitHub recommended us to update the git client on our machines.
news on vulnerability
So I type in console
git --version //getting 2.0.1
which git //getting /usr/local/git/bin/git
Then I upload one from here(2.2.1, for instance):
The Git core team site
I unzip it and then I cant figure it out where to put unzipped files because files under /usr/local/git are so different,
what do I need to do to install it?
Update: for everyone curious about my question, this particular link have the answers

Since you appear to be using Linux (or maybe Max OSX) you'll need to use one of the package managers. The Download page for Git on Linux has more information.
For Mac OS you'll need to use Homebrew or MacPorts.
Otherwise you'll have to download the source code, make and make install the newest version of Git if the Linux and Mac package managers don't have the newest release listed.
Installing Git

Related

Download the older version git for windows

How can I download the git 2.24.1 exe for windows from this link, but I'm not actually sure what to do with them to install.
Never mind. Found it here the Git old version
https://github.com/git-for-windows/git/releases/tag/v2.24.1.windows.2

How do I properly upgrade SVN on MAC?

I'm starting on a new team who are all on PCs using TortoiseSVN with SVN version 1.9.2. I'm on a Mac OSX (El Capitan) using the Versionsapp. When I check svn --version in terminal i get 1.7.10.
When I try any svn command such as svn update I get
svn: E155021: This client is too old to work with the working copy at
'/Users/dpowell/Desktop/sites/site.org.new' (format 31).
You need to get a newer Subversion client. For more details, see
http://subversion.apache.org/faq.html#working-copy-format-change
I've gone to the site and downloaded the python script but don't know it will do anything to help (i.e. I don't know how to use it). I've also downloaded the 1.9 package and tried installing svn that way.
I'm not sure what path to take to solve this issue
The Python script you downloaded from there was to downgrade your SVN version - you need to upgrade your SVN version. I recommend going the homebrew route - it will save you lots of pain in upgrading / installing OSX packages in the future.
Follow the instructions here: http://brew.sh/
(copy that line into a terminal an press ENTER, then follow the prompts)
Then, when homebrew is installed, so update SVN, just do brew install svn.
In Terminal, type "svn --version" to find out what version you currently have
Go to http://www.wandisco.com/subversion/download#osx and download the latest client for OS X and install it. This will install the new svn into /opt/subversion/bin
Got to your terminal and check your $PATH by typing "echo $PATH". If you don't see /opt/subversion/bin in there, make sure you add it by typing export PATH=/opt/subversion/bin:$PATH. If it DOES exist and appears AFTER /usr/bin, then you may need to remove an older copy of svn that came installed on OS X. To do so, go to /usr/bin and remove all files starting with svn. This isn't an exact science but it should do the trick.
For me export PATH=/opt/subversion/bin:$PATH worked as it was installed in /opt/subversion/bin
Make sure you reload your .profile first by typing
. ./.profile*
Type "svn --version". You should see that you have the newest version installed!
brew upgrade subversion
Others solutions require you to register an Account?? forget them.

How to install GitFlow for Windows

Is there a way to install Git Flow on Windows? I tried this tutorial but I'm unable to understand it.
I already have Git Installed on my PC, can I use GitFlow from my current Git installation?
Use the recently released Git for Windows 2.5.3 which now ships with git-flow (the AVH edition of it).
If you have Sourcetree OR if you install Sourcetree, you can find GitFlow options there. This is one of the easiest way to use GitFlow.
Once you active GitFlow from their (shown in the above screenshot), you can use all GitFlow commands from the terminal as well.

Git not working. Installed XCode

Using an iMac running OSX 10.8.5 (Mountain Lion). It's a work computer and can't upgrade to a higher OS version at the moment for various reasons.
I tried installing XCode so that I can use Git but it isn't working.
In terminal I run:
git --version
and get this response:
-bash: git: command not found
What am I doing wrong?
You need to install git separately:
http://burnedpixel.com/blog/setting-up-git-and-github-on-your-mac/
Source control was only introduced into Xcode 4. This however does not mean git is installed onto your system as part of downloading Xcode. It just means that you can use some git features in a Xcode project by pressing the source control button at the top. To install the actual git go here.
I'm don't know why it appears to be so, but it looks like Git still isn't installed on your computer. Another way to check if Git is installed is by using the which git command. If that still doesn't help, install it separately. Download Git for Mac.

Which git version use GitHub Gui for mac?

I have installed the current latest version of git for the mac. Previously I had git 1.8.5.2 version. I have installed GitHub gui as well https://mac.github.com/. I have setted correctly the PATH infact now when I write on the terminal git --version I get back the latest version 2.0.1. I have executed the .sh that come together the installation package named setup git PATH for non-terminal programs.sh. Now my question is: the github gui for mac os x which version of github uses? does it exist a wat to set up it?
Maybe I have found the solution. Inside github app there is a folder named resource and inside it there is a folder named git where there it the bin of git

Resources