This repository was archived by the owner on Dec 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Prerequisites
sponge edited this page Jun 26, 2021
·
2 revisions
- Install Homebrew
- Install Git
- Set Global Git-Config
- Option. Set Default Initial Branch Name 'main'
- Option. Set Global Git-Graph-Beautify on CLI
- Install Git-Flow
- 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)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 ~/.gitconfiggit config --global init.defaultBranch main
# Check
cat ~/.gitconfig |egrep "init|defaultBranch"
# Like below ..
# [init]
# defaultBranch = main # 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 - spongebrew install git-flow
# Check
git flow version
# Like below ..
# 0.4.1choose one to pick prefer method
-
brew cask install visual-studio-code
-
Download App from Homepage
-
brew install --cask intellij-idea
-
Download App from Homepage
Next Read: How to use
π Prerequisites
π How to use
π Clean Code
π Meaningful Names + Extra
π Functions
π Comments
π Formatting
π Objects and Data Structures
ongoing! π
π Error Handling
π Boundaries
π Unit Tests
π Classes
π Systems
π Emergence
up-to-here! π
π§· Concurrency
π§· JUnit Internals