Skip to content

fix the git pull issue - #24

Open
Utkar5hM wants to merge 1 commit into
mainfrom
git-pull-fix
Open

fix the git pull issue#24
Utkar5hM wants to merge 1 commit into
mainfrom
git-pull-fix

Conversation

@Utkar5hM

Copy link
Copy Markdown
Collaborator

Finally fixed it with codex.

  • git pull with no arguments usually uses the configured remote, typically origin, plus its fetch refspec. That often updates origin/* remote-tracking refs, so Git learns about new branches.
  • git pull pulls from an arbitrary URL into FETCH_HEAD and updates the current checked-out branch. It does not guarantee a local branch named <branch_name>, and it may not create origin/<branch_name> either.
  • git checkout <branch_name> is a separate step. It only works if that branch already exists locally, or Git can see a matching remote-tracking branch.

solves #9.

Signed-off-by: Utkarsh Mahajan <utkarshrm568@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant