Skip to content

sustainable-git/GIT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🚀GIT 사용법🛰

Contents

  • GIT 설정하기🛠
    • git config --global user.name "이름"
    • git config --global user.email "이메일"
    • git config --global --edit"
      • git config --global core.autocrlf input(Mac)
      • git config --global core.autocrlf true(Window)
      • git config --global core.editor "xed --wait"(Xcode)
      • git config --global core.editor "code --wait"(Visual Studio Code)

  • Rebase와 Cherry-Pick🍒
    • git rebase 브랜치명
      • git rebase 브랜치명 브랜치명
      • git rebase --onto 브랜치명 브랜치명 브랜치명
      • git rebase --abort
      • git rebase --continue
    • git cherry-pick 해시코드

  • GIT 도구 - Stash, Clean⛏
    • git stash push -m "스태시 메시지"
      • git stash
      • git stash -u
      • git stash --keep-index
    • git stash list
      • git stash show 스태시
      • git stash show 스태시 --patch
    • git stach apply 스태시
      • git stash pop 스태시
    • git stash drop 스태시
      • git stash clear
    • git stash branch 브랜치명
    • git clean
      • git clean -fd
      • git clean -x
      • git clean -d -n

  • Reset으로 되돌아가기⏮
    • git reset
      • git reset --soft 해시코드
      • git reset --hard 해시코드
    • git restore --source=해시코드 파일명
    • git revert 해시코드

  • GIT 도구 - RefLog📜
    • git reflog
      • git reflog expire --expire=시간 --all
    • git show HEAD@{숫자}
    • git show 브랜치명@{시간}

About

📚 GIT 사용법을 배워 봅시다 🔥

Topics

Resources

Stars

Watchers

Forks