-
Git Commandsgit 2020. 2. 17. 15:18
.git : git repository
git config --global core.editor "vim" : change default editor
git init : initialize repository
git status : working tree statusgit remote add <alias> <url>
git pull
git add : add to staging area git commit : create version
git commit -am : add + commitgit push <remote name> <branch name>
git log : show versiongit log --oneline
git log --stat : show versioned files
git diff : show changes
git log -p : show log with diff results
git checkout version id : time travel(head만 옮겨짐)
git reset --hard : go to specified version(head만 옮겨지는게 아니라 이후의 버전 모두 삭제)