Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fetch updated repository from default branch #1384

Unanswered
dsharma522 asked this question in Q&A
Discussion options

There is a case where the repository have only One branch and that it default_branch itself (master).
Now the default branch itself changed to main (master -> main) . As branch name is changed ,

repo.git.fetch()

is failing which is quite obvious.
How we can set local repository with the upstream repository in this case. ? There is Only One branch (default_branch)

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /