Posted onEdited onIngitWord count in article: 186Reading time ≈1 mins.
Pull vs Fetch
Pull = Fetch + Merge
Git Fetch 이후 상태
1 2 3 4 5 6 7 8 9 10 11 12 13
$ git fetch origin main
$ git log --decorate -5 --oneline 70e223a (origin/main, origin/HEAD) modified open graph type 1b156f7 modified manifest 2540a5a (HEAD -> main) Add post html5 game 4ff029b Add post hexo tag plugin b9ca990 modified post
$ git status On branch main Your branch is behind 'origin/main' by 2 commits, and can be fast-forwarded. (use "git pull" to update your local branch)
fetch 이후에 git 상태를 확인해보면 local branch 가 2개 이전의 commit 상태라고 나온다
$ git log --decorate -5 --oneline 70e223a (HEAD -> main, origin/main, origin/HEAD) modified open graph type 1b156f7 modified manifest 2540a5a Add post html5 game 4ff029b Add post hexo tag plugin b9ca990 modified post