Git

Summary

TBD.

Installation

I explain the installation of git for each platform.

  • macOS
  • Windows

<<tab-c5ff0e00-2cd0-4626-bf43-76e1b5e7776d-0>> In the macOS, you can install git by the following methods:

  • Xcode (/usr/bin/git will also be installed. )
  • Homebrew (/usr/local/bin/git)
  • MacPorts

Xcode

TBD.

Homebrew

brew install git

MacPorts

TBD.

<<tab-c5ff0e00-2cd0-4626-bf43-76e1b5e7776d-1>> In the Windows, you can install =git= by the following methods:

  • Scoop
  • Git for Windows Installer

Scoop

Run command.

scoop install git

Git for Windows Installer

Download a installer from https://gitforwindows.org.
Then, launch it.

STEP

Agree the License

https://hiroakit.sakura.ne.jp/wp-content/uploads/2021/07/GitForwindows_01.png

STEP

Select components

https://hiroakit.sakura.ne.jp/wp-content/uploads/2021/07/GitForwindows_02.png

STEP

Select text editor

https://hiroakit.sakura.ne.jp/wp-content/uploads/2021/07/GitForwindows_03.png

STEP

Select rule for repository name

https://hiroakit.sakura.ne.jp/wp-content/uploads/2021/07/GitForwindows_04.png

STEP

Select the content to be reflected in %PATH%

https://hiroakit.sakura.ne.jp/wp-content/uploads/2021/07/GitForwindows_05.png

STEP

Select SSL library

https://hiroakit.sakura.ne.jp/wp-content/uploads/2021/07/GitForwindows_06.png

STEP

Select rule of the line ending

https://hiroakit.sakura.ne.jp/wp-content/uploads/2021/07/GitForwindows_07.png

STEP

Select the terminal emulator

https://hiroakit.sakura.ne.jp/wp-content/uploads/2021/07/GitForwindows_08.png

STEP

Select default rule for git pull

https://hiroakit.sakura.ne.jp/wp-content/uploads/2021/07/GitForwindows_09.png

STEP

Select credential manager

https://hiroakit.sakura.ne.jp/wp-content/uploads/2021/07/GitForwindows_10.png

STEP

Select option 1

https://hiroakit.sakura.ne.jp/wp-content/uploads/2021/07/GitForwindows_11.png

STEP

Select option 2

https://hiroakit.sakura.ne.jp/wp-content/uploads/2021/07/GitForwindows_12.png

STEP

Finished

https://hiroakit.sakura.ne.jp/wp-content/uploads/2021/07/GitForwindows_13.png

STEP

Check %PATH%

Check the Environment Variables.

https://hiroakit.sakura.ne.jp/wp-content/uploads/2021/07/GitForwindows_14-1024x846.png

See %PATH% in the System variables section.

https://hiroakit.sakura.ne.jp/wp-content/uploads/2021/07/GitForwindows_15.png

Check item that are=C:Program Files\Git\cmd=, C:\Program Files\Git\mingw64\bin=and =C:\Program Files\Git\usr\bin in the view.

https://hiroakit.sakura.ne.jp/wp-content/uploads/2021/07/GitForwindows_16.png

STEP

Run the terminal

Run the command in PowerShell.

> which -a git
/cmd/git
/mingw64/bin/git

Git Submodule

Remove dependency

1
2
3
git submodule deinit -f a-module
git rm -f a-module
rm -rf .git/modules/a-module