Appendix C. Installing Git

Git is a version control system for tracking changes in files and coordinating work on those files among multiple people. It can be used for deployment.

C.1 Installing Git on Windows

To install Git on Windows, go to https://git-scm.com/download/win and follow the instructions.

C.2 Installing Git on macOS

For your Mac, you have several options to choose from:

  • Go to https://git-scm.com/download/mac and follow the instructions. This is the default way.
  • Open a terminal and type git . You will be prompted to install Xcode and its command-line tools. Xcode is a bit of a heavy installation, but this is the recommended way.
  • Use Homebrew (installation covered in appendix B) and install Git via brew install git .

C.3 Installing Git on Ubuntu

Use git --version to check that Git is not installed. If Git is not installed already, use the following:

$ sudo apt install git

C.4 Installing Git on RHEL / Amazon EMR

Use git --version to check that Git is not installed. If Git is not installed already, use the following:

$ sudo yum install -y git

C.5 Other tools to consider

Here are a few tools to consider on your journey with Git:

  • My favorite graphical frontend for Git is Atlassian’s Sourcetree. It is available for Windows and macOS. It is free to install and use. Check it out at https://www.sourcetreeapp.com/ .
  • For Windows, you can use TortoiseGit ( https://tortoisegit.org/ ). TortoiseGit integrates with Windows Explorer. It is recommended by one of the book’s technical editors, Rambabu Posa.
  • Eclipse Oxygen integrates pretty seamlessly with the Git repository for most operations. However, sometimes it gets weird, and Sourcetree comes to the rescue.
  • GitHub (now a Microsoft company) is offering the Git repository as a service; all the examples, labs, and data from this book are stored there.
  • Documentation and tutorials can be found at https://git-scm.com/doc .
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.68.49