Commit cc1b5790 authored by Barron, Tom's avatar Barron, Tom Committed by GitLab
Browse files

Slides about git status and whether branch is up to date with remote

parent b6b36a2d
How come git status isn't always the same?
Sometimes it tells whether I'm up to date with the remote
> $ git status
On branch tpb-rf9-dont-panic-gitting-unlost
Your branch is up-to-date with 'origin/tpb-rf9-dont-panic-gitting-unlost'.
nothing to commit, working directory clean
But sometimes it doesn't!
> $ git checkout untracked
> $ git push origin untracked
> $ git status
On branch untracked
nothing to commit, working directory clean
What gives?
git provides the remote status when the branch is set
> $ git push -u origin untracked
> $ git status
On branch untracked
Your branch is up-to-date with 'origin/untracked'.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment