羽、羽バニラを正しく学ぶ(基本マスター編)


https://www.youtube.com/watch?v=Z9dvM7qgN9sを見て
始める前に.
iTerm 2とoh-my-zshはmac端末を飾ることができます
iTerms 2インストール
https://iterm2.com/
oh-my-zshインストール
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh )"
Looking for an existing zsh config...
Found ~/.zshrc. Backing up to/Users/myeongsim/.zshrc.pre-oh-my-zsh
Using the Oh My Zsh template file and adding it to ~/.zshrc.
あなたがどの支路にいるか知っています.
推奨インストール
git config 3つのプロファイル
  • /etc/gitconfigファイル:システム内のすべてのユーザーとすべてのリポジトリの設定に適用されます.
    「git config」--このファイルの読み取りと書き込みを行うには、システムオプションを使用します.
  • ~/.gitconfig, ~/.config/git/configファイル:特定のユーザーの設定にのみ適用されます.
    git config--globalオプションを使用してファイルを読み書きできます.
  • .git/config:このファイルはGitディレクトリにあり、特定のリポジトリ(または現在処理中のプロジェクト)にのみ適用されます.
    各設定は逆順序で優先されます.だから.git/configは/etc/gitconfigより優先されます.
  • 羽毛プリファレンスの設定


    git --version
    git version 2.24.3 (Apple Git-128)
    git config --list
    credential.helper=osxkeychain
    user.任命心
    [email protected]
    core.excludesfile=/Users/myeongsim/.gitignore_global
    difftool.sourcetree.cmd=opendiff "LOCAL""LOCAL""LOCAL""REMOTE"
    difftool.sourcetree.path=
    mergetool.sourcetree.cmd=/Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh "LOCAL""LOCAL""LOCAL""REMOTE"-ancestor "BASE"−merge"BASE"-merge "BASE"−merge"MERGED"
    mergetool.sourcetree.trustexitcode=true
    git config --global -e
    -eは編集を表します
    vscを開きShellと併用
    command shift p

    code .
    git config --global core.editor "code"
    git config --global -e
    入力後にvscを生成
    git config --global core.editor "code --wait"
    git config --global -e
    [core]
    excludesfile =/Users/myeongsim/.gitignore_global
    editor = code --wait
    エディタをcodeからcode-waitに変更
    vscが閉じるまでshellは使用できません
    git config --global user.name "Ellie"
    git config --global user.email "[email protected]"
    git config user.name
    Ellie
    git config --global core.autocrlf input
    ウィンドウはrnとして保存され、襟に保存された場合はnのみ保持されます.(true)
    macはnとして保存されていますが、受信メールのファイルにrnがある可能性がありますので、nのみを残すように設定します.(input)
    \r(carriage-return)
    \n(line feed)
    襟にはnしか残っていません

    .gitconfigファイルの内容を変更
    [core]
    excludesfile =/Users/myeongsim/.gitignore_global
    editor = code --wait
    autocrlf = input

    現在の概要


    git config --global user.name "Ellie"
    git config --global user.email "[email protected]"
    git config --global core.autocrlf input

    羽毛リポジトリをローカルに作成する


    mkdir git
    cd git
    git init領地の起動
    open .git開始時に作成したファイルを開く

    rm -rf .Git羽を削除

    git add


    ダンプ
    (ダンプとキャッシュの意味は同じ)
    コミット前にファイルの変更を検出
    中間Git statusの表示
    git status-hでは、さまざまなオプションが用意されています
    git status-sバージョンが短い
    echo Hello world! > a.txtテキストファイルに保存
    echo hello world! > b.txt
    echo hello world! > c.txt
    git add a.txtダンプ(すなわち追跡)
    git add .
    echo ellie>a.txt ellieテキストを追加して保存
    git rm--キャッシュダンプ(トレース無効)
    echo log > log.log
    echo .log > .gitignore羽の除外

    git diff


    変更内容は作業ディレクトリで表示できます
    ダンプの変化を知りたいなら、選択肢をください.
    git diff --staged
    git diff --cached
    git config --global -e
    //.gitconfigファイル
    [difftool "sourcetree"]
    	cmd = opendiff \"$LOCAL\" \"$REMOTE\"
    	path = 
    [mergetool "sourcetree"]
    	cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
    	trustExitCode = true

    git commit


    git log


    git commit -am "second commit"
    a: all
    m: message

    提出規模は?


    機能別に履歴に保存した方が良い
    今の時態で
    ex) Initialize project
    ex) Add LoginService module
    ex) Add UserRepository module
    ex) Add Welcome page
    ex) Add About page
    ex) Add light theme
    注意事項!
    Fix crashing on login module
    誤りを正せばそれだけを正せば反映する

    UIツールの使用


    ソースツリーの使用
    1行だけ提出することもできます!