—–
github
# Git basic knowledge
- git handle SHA-1 commit name. last 7 characters are enough to handle.
- staging : done by 'git add'
git add [filename]
# git commit
git commit -m [msg] : git commit with message,
git commit -F [filename] : git commit with File message
git commit -a : 편집기가 실행되고 git에서는 변경된 모든 파일에 대한 커밋을 한다.
git commit -c HEAD --amend : 마지막에 수정한 커밋을 수정해준다 (push 하기이전에)
git branch -a : Show every git branch
git remote -v : show repository
# git log
git log -1 : show log 1 history
git log --pretty=oneline : show oneline history
git checkout [branchname] : switch branch to [branchname]
git push origin dialog_dev
git checkout -- . : abandon every changes
No comments:
Post a Comment