Screenshot 2023-07-26 at 10.29.38 AM.png

git branch delete 방법

// delete branch locally
git branch -d localBranchName

//delete local branch that is unmerged
git branch -D localBranchName

// delete branch remotely
git push origin --delete remoteBranchName

git checkout -b “{branch name}”

{branch name}으로 branch를 만들어 줌과 동시에 branch로 이동함.

git rm -r --cached .

이미 올라가 있는 파일을 .gitignore에 적용될 수 있도록 해주는 command

https://stackoverflow.com/questions/19663093/apply-gitignore-on-an-existing-repository-already-tracking-large-number-of-file

git config --get remote.origin.url

현재 directory가 push하는 remote url을 보여주는 command

git config --global user.name "John Doe"
git config --global user.email [email protected]

git log --all --decorate --graph