Git Pull
Breakdown Updating 1accfd5..b22e649 Your local branch was at commit 1accfd5. After pulling, it moved to commit b22e649. Fast-forward Git did not create a merge commit. Your local…
bash
git pull
Updating 1accfd5..b22e649
Fast-forward
hellofolder | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)Breakdown
Updating 1accfd5..b22e649
- Your local branch was at commit
1accfd5. - After pulling, it moved to commit
b22e649.
Fast-forward
- Git did not create a merge commit.
- Your local branch had no unique commits that conflicted with the remote branch.
- Git simply moved the branch pointer forward to the newer commit.
hellofolder | 2 +-
This indicates changes in the file named hellofolder:
2= two lines were modified.+-= one line was added and one line was removed.
1 file changed, 1 insertion(+), 1 deletion(-)
- One file was modified.
- One line was added.
- One line was removed.
Check if the commit exists
bash
git rev-parse b22e649Inspect the pulled commit with
bash
git log --oneline -1
git show HEADCheck whether you're inside the correct repository
bash
git rev-parse --show-toplevelShow short commit head
bash
git rev-parse --short HEADgit/git-pull.md
Related articles
- GitGit SubmodulesA practical guide to adding, updating, moving and removing Git submodules.
- GitGit CommandTo list all references
- GitGit Delete BranchSee which side introduced the current differences
- GitGit LogTo show short commit id, date and commit title To view the code changed by commit id To show graph with last 5 lines To show all branchs