ETC 13

[Git] .gitignore 참고하면 좋은 사이트, gitignore 변경 시 적용하는 방법

gitignore.io https://www.toptal.com/developers/gitignore gitignore.io Create useful .gitignore files for your project www.toptal.com 주로 사용하는 키워드 운영체제, 개발 환경(IDE), 언어 나의 경우, Git Windows, macOS, Linux Intellij, AndroidStudio, Xcode Android, Kotlin, Java, Node, Swift 등이 있었다. 기존 프로젝트에 .gitignore 업데이트 시 적용하는 방법 기존 프로젝트에서 .gitignore을 업데이트하게 되면 이미 push된 사항들을 제거해야 할 일이 생길 수 있다😥 이때 Local에서 아래와 같이 명령어를 입력..

ETC/Git 2021.11.23

[Git] Git stash 사용하기

stash 저장 // 메시지 없이 stash 저장하기 $ git stash // 메세지 지정해주기 $ git stash save [message] stash 목록 출력 $ git stash list stash@{번호}: 메시지 형태의 리스트가 출력된다. 가장 오래된 스태시가 0번에 쌓인다. stash 꺼내오기 $ git stash apply $ git stash apply [stash 이름] stash 삭제하기 $ git stash drop [stash 번호] 리스트를 출력하여 불필요한 스태시를 확인한다. drop 명령어를 사용해서 특정 스태시를 삭제할 수 있다. stash 꺼내오고 list에서 삭제 pop = apply + drop $ git stash pop $ git stash apply $ git..

ETC/Git 2021.11.22