79296588

Date: 2024-12-20 08:27:58
Score: 0.5
Natty:
Report link

As for commit and push, git status works.

git status

'Changes to be committed: ... blabla' -> do commit

'ahead of 'origin/master' by n commits blabla': this means it is at ahead -> do push

'up to date' & 'nothing to commit'. Then you need to check pull-status by

git remote show origin

If it shows '(local out of date)', local repo is at behind. -> do pull

In case of '(up to date)', it is at the same commit with remote (origin/master).

For the issue of 'origin/master' in local and real 'origin/master' in network, refer to this page.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Joonho Park