In this article, I will show you how to install Git on a MAC OS, as well as how to install Git on LINUX. A couple of things you will want to make note of while interacting with Git. Even if you already have Git installed it is a good idea to update to the latest version. All of the commands below should work, even on the older versions of Git. Mar 02, 2018. Git is open source software (free for anyone to use) written by Linus Torvalds who also wrote the Linux operating system. It is a program for keeping track of changes over time, known in programming as version control. Step: Install Git. Windows: It's recommended to download GitHub for Windows, which includes Git and has an easier install: windows.github.com. Jan 23, 2017. Mar 02, 2019.
by rajaraodv
In this blog I’ll go over the steps to add Themes, Powerline, fonts, and powerline-gitstatus to make your regular Bash Terminal look beautiful and useful as shown in the picture above.
It turns out, if you are using Mac, you’ll need to jump through a lot of hoops to get this working as many instructions are for linux, or are out of date. So I thought I'd blog about it - hopefully it'll help you.
Notes:
OK, by default, when you have a new mac, your Terminal.app will look something like below. Let’s go ahead and add Themes, fonts, and so on.
Step 1 — Add A New Theme
The first obvious step is to enhance the Theme. Terminal doesn’t provide all the cool and fancy themes that you see other developers use. Let’s download a Theme and add it to the Terminal.
In this blog, I’ll add Solarized-Dark theme to our Terminal.
Note: You can download various Themes (.terminal files) from this git repo. Simply open the
From now on, your Terminal should like below.
Step 2 — Install Powerline
Powerline is a Python app and is a status line plugin for vim, and provides status lines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile.
It makes the Terminal prompt look like below.
2.1 Install Python
Because Powerline is a Python app, we need to have Python and that too a proper version of Python.
2.2 Install pip — A package manager for Python (similar to npm)![]()
Install pip by running the following command
$ sudo easy_install pip
2.3 Install XCode Developer CLI tools
XCode Developer CLI tools are used by Powerline and other apps that manipulate core OSX features. So make sure to install the XCode CLI tools by running the following command.
$ xcode-select —-install
Note: The above command opens up Mac’s installer and installs the XCode Developer CLI tools. If it doesn’t work, try
2.4 Install Powerline
Finally, install the Powerline (stable version) via pip by running the following command. Lexmark 3600 to 4600 driver mac download.
If you want to install the latest development branch, then use:
2.5 Add the Powerline daemon to bash
We now need to add the Powerline daemon to bash so that it can monitor the Terminal prompt and make changes. https://folperpellae.tistory.com/7.
2.5.1 Copy the Powerline’s installation location
You can figure out the location of Powerline by running the following:
pip show powerline-status Copy the value from the Location field.
2.5.2 Add the daemon with a proper location to .bash_profile
2. Open
.bash_profile and add the following:
Note: The location /Users/rupa/Library/Python/2.7/lib/python/site-packages/ is from the previous step (2.5.1). Change it to match your computer’s location.
2.5.3. Restart the Terminal Mysql mac download 10.7.
Completely quit the Terminal if it’s open (Terminal > Quit Terminal). And open it again.
You should be able to simply use
2.5.4 Your new Terminal
Your new Terminal should look like below. It should be using “Solarized Dark ansi” theme and should show Powerline in the command prompt. But also notice that there are “?” characters! This is because Powerline uses various icons and fonts that are not available by default. So we need to install the fonts.
Step 3 — Install Powerline fonts
To install Powerline fonts, simply go to https://github.com/powerline/fonts. There you’ll see a whole bunch of folders. Each one is a font, aka “Patched fonts”.
It is called “Patched fonts” because people have taken regular fonts and have added/patched additional Powerline specific icons and fonts to them. 3.1 Download the whole repo and unzip it
3.2 Install some fonts
Let’s open Meslo dotted fontsfolder. It will look like below. You’ll see a whole bunch of .ttf file. Each one of them is a font but some are “bold” version of the font, some are “regular” version and so on.
Simply double-click on the .ttf file and press “Install font” to install the font on your computer.
For our case, let’s install “Meslo LG L DZ Regular for Powerline.ttf” and “Meslo LG L DZ Italic for Powerline.ttf”. This will add a regular and an Italic version of the Meslo font.
3.3 Select the font in the Terminal’s Theme
Remember we added “Solarized Dark” theme in Step 1? That didn’t have any fonts in it and MacOS had some default font. All we need to do is to set our Meslo dotted font for this theme and we are done!
3.4 Restart Terminal
Completely quit the Terminal (Terminal > Quit Terminal) and then reopen it.
Step 4 — Adding Git information to the prompt
In order to display various Git status at the prompt, we need to install powerline-gitstatus. It is a simple add-on to Powerline and adds multiple colors and Themes to display various git status information.
4.1 Install powerline-gitstatusNote: “ — user” command is required to install it in the user’s profile. 4.2 Add powerline-gitstatus color schemes to Powerline
4.2.1 Open the following
colorschemes/shell/default.json folder
4.2.2 Add the following colors:
As mentioned in the powerline-gitstatus readme. PS: Just copy the colors inside “groups” and then append it to the default.json as shown below.
Here is my color schemes default.json (you may copy and paste this instead):
4.3 Activate The Theme
4.3.1 Open Theme’s default.json file
4.3.2 Add the following to the default.json
Below is my Powerline’s Theme default.json(you may copy and paste this instead):
Note: I have removed everything from the “right” section and also removed “job number” (“jobnum”) to keep things clean. Otherwise, you’ll see a little artifact on the right-hand side edge of the prompt. Install Git Bash On Mac4.4 Restart the Daemon
Save the file and run the following:
powerline-daemon —-replace in the Terminal. Download maven command line mac.
Important Note: Every time you make changes to Powerline’s config, in addition to restarting the Terminal, you’ll also need to restartthe daemon to see the changes reflected by running:
4.5 Restart The Terminal![]()
Quit the Terminal (Terminal > Quit Terminal) and open it again.
https://cleverhost864.weebly.com/filemaker-55-mac-download.html. At this point, we are all done! whew! If you open the Terminal, and navigate to any git repo, and play around, it should look like the following.
Here is how it looks in Solarized-Light Theme:
Here is how it looks in Cobalt2 Theme:
?? Thank you!
If you have questions, please feel free to ask me on Twitter: https://twitter.com/rajaraodv
If this was useful, please click the clap ? button down below a few times to show your support! ⬇⬇⬇ ??My Other PostsECMAScript 2015+Terminal ImprovementsWWWVirtual DOMReact PerformanceFunctional ProgrammingWebPack
Draft.jsReact And Redux :
If this was useful, please share it! Thank you! ??
There are multiple ways to install Git on mac. It comes inbuilt with Xcode or its other command-line tools. To start the Git, open terminal and enter the below command:
The above command will display the installed version of Git.
Output:
If you do not have installed it already, then it will ask you to install it.
Apple provides support for Git, but it lags by several major versions. We may install a newer version of Git using one of the following methods:
Git Installer for Mac
This process is the simplest way to download the latest version of Git. Visit the official page of git downloads. Choose the download option for Mac OS X.
The installer file will download to your system. Follow the prompts, choose the required installer option. After the installation process completed, verify the installation was successful by running the below command on the terminal:
The above command will display the installed version of Git. Consider the below output.
Output:
Now, we have successfully installed the latest version on our mac OS. It's time to configure the version control system for the first use.
To register a username, run the below command:
To register an email address for the given author, run the below command:
To go in-depth with the git config command, visit Here.
Installation via MacPorts
Sometimes MacPorts also referred to DarwinPorts. It makes the straightforward installation of software on the Mac OS and Darwin operating systems. If we have installed MacPorts for managing packages on OS X, follow the below steps to install Git.
Step1: Update MacPorts
To update MacPorts, run the below command:
Step2: Search for the latest Ports
To search for the most recent available Git ports and variants, run the below command:
The above command will search for the latest available port and options and will install it.
Step3: Install Git
To install Git, run the below command:
We can also install some extra tools with Git. These tools may assist Git in different manners. To Install Git with bash-completion, svn, and the docs, run the below command: Cant delete dmg fromipsw.
Now, we have successfully installed Git with the help of MacPorts on our system.
Step4: Configure Git
The next step for the first use is git configuration.
We will configure the Git username and email address as same as given above.
To register a username, run the below command:
To register an email address for the given author, run the below command:
Install Git via Homebrew
Homebrew is used to make the software installation straight forward. If we have installed Homebrew for managing packages on OS X, follow the below steps to go with Git:
Step1: install Git
Open the terminal and run the below command to install Git using Homebrew:
The above command will install the Git on our machine. The next step is to verify the installation.
Step2: Verify the installation https://cleverhost864.weebly.com/beyond-compare-free-download-mac.html.
It is essential to ensure that whether the installation process has been succeeded or not.
To verify whether the installation has been successful or not, run the below command:
The above command will display the version that has been installed on your system. Consider the below output:
Step3: Configure Git
We will configure the Git username and email address same as given above.
To register a username, run the below command:
Git Bash Download Mac
To register an email address for the given author, run the below command:
Git Bash Terminal DownloadMac Os X Install GitComments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |