Skip to content
This repository was archived by the owner on Dec 30, 2021. It is now read-only.

Prerequisites

sponge edited this page Jun 26, 2021 · 2 revisions

Prerequisites for MacOS.

  1. Install Homebrew
  2. Install Git
  3. Set Global Git-Config
  4. Option. Set Default Initial Branch Name 'main'
  5. Option. Set Global Git-Graph-Beautify on CLI
  6. Install Git-Flow
  7. Install Prefer IDE

Install Homebrew.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install Git.

# Check installation
git --version
  # zsh: command not found: git

brew install git

# Check
git --version
  # git version 2.30.1 (Apple Git-130)

Set global git-configuration.

git config --global core.autocrlf true
git config --global user.name <github-nicknanme>
git config --global user.email <github-email>

# Check
git config --list |grep user
  # Like below ..
  # user.email=dev2sponge@gmail.com
  # user.name=SPONGE-JL

# If you want to edit typo, try this
vi ~/.gitconfig

[option] Set default initial git-branch-name the main (not the master).

git config --global init.defaultBranch main

# Check
cat ~/.gitconfig |egrep "init|defaultBranch"
  # Like below ..
  # [init]
  #   defaultBranch = main 

[option] Beautify git graph on cli.

# Backup the origin config
cp ~/.gitconfig ~/.gitconfig_bak

# Add git-graph-beautify aliases
echo "[alias]" >> ~/.gitconfig
echo "  lg  = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" >> ~/.gitconfig
echo "  lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all" >> ~/.gitconfig
echo "  lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n''          %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all" >> ~/.gitconfig

# Try git-cli in local git repository
# Want to exit, type [q]
git lg
  # 8b7a1d5 - (HEAD -> seminar, origin/main, origin/HEAD, main) Initial commit (41 minutes ago) <sponge>

git lg1
  # * 8b7a1d5 - (42 minutes ago) Initial commit - sponge (HEAD -> seminar, origin/main, origin/HEAD, main)

git lg2
  # * 8b7a1d5 - Sat, 26 Jun 2021 12:39:01 +0900 (42 minutes ago) (HEAD -> seminar, origin/main, origin/HEAD, main)
  #           Initial commit - sponge

Install Git-Flow.

brew install git-flow

# Check
git flow version
  # Like below ..
  # 0.4.1

Install Prefer IDE.

choose one to pick prefer method

Visual Studio Code

Intellij IDEA - Community Edition


Next Read: How to use

Suite-up

πŸ“” Prerequisites

πŸ“” How to use

Artifacts

πŸ“Œ Clean Code

πŸ“Œ Meaningful Names + Extra

πŸ“Œ Functions

πŸ“Œ Comments

πŸ“Œ Formatting

πŸ“Œ Objects and Data Structures

Remains

ongoing! πŸ€

πŸ“Œ Error Handling

πŸ“Œ Boundaries

πŸ“Œ Unit Tests

πŸ“Œ Classes

πŸ“Œ Systems

πŸ“Œ Emergence

up-to-here! πŸš€

🧷 Concurrency

🧷 Successive Refinement

🧷 JUnit Internals

🧷 Refactoring SerialDate

Clone this wiki locally