简体   繁体   中英

merge two github branches

So was starting with GitHub and created a repo with same name as the folder (ie resume) on my desktop. Now it created a default branch of name main .

Using a GitHub document ( https://gist.github.com/mindplace/b4b094157d7a3be6afd2c96370d39fad ), I pushed my code to the same repository in GitHub.

Now there are two branches in my GitHub repo ( main and master ).I tried to merge the two using Pull Request, but GitHub said that There is nothing to compare in the two branches .

I want to have master as my only branch. What can I do? Plz Help.

Here's the link to the repo https://github.com/Ankit29Git/resume.git

You can delete the main branch from the remote.

git push origin --delete main

for brief you can follow this https://www.freecodecamp.org/news/how-to-delete-a-git-branch-both-locally-and-remotely/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM