so I am on a branch "somebranch," and I go back to master by git checkout master. I get the message "On Branch Master Your branch is up-to-date with 'origin/master'. Nothing to commit, working directory clean." This is the same message that comes up when I do a git status.
But then I do git pull, it pulls two changes to master. I checked git log and it seemed there was a new commit to master 3 minutes ago. Is there a lag with git status? I just did a git status and it again says I am up-to-date. I tried another pull right after and it pulled a new branch but no change to master - this I can understand, as git status probably only checks whether my current branch is up to date. But can someone explain how git status works and why there appears to be a lag?
Question 2: my git workflow at the moment is this:
git checkout mastergit pull(so I am on the latest version)- now I want to work on some issue on a new branch
git checkout -b newIssue- work on the issue, solve it
git add .git commit -m "some msg"
at this point I would push, code review, and merge. I've had to do a rebase because 'origin/master' had advanced past me. How can I keep my branch newIssue up to date with master so I can just merge? How can I git pull from origin/master into newIssue?