Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 807 Bytes

File metadata and controls

35 lines (25 loc) · 807 Bytes

How did i push this repo - >

So now it will create a new branch called master basically for development purposes.

Now if i want to merge the codes in the main branch;

  • git branch

it will show how many branches you have currently

  • git checkout main

it is used to switch in different branches

  • git status
  • git checkout master
  • git merge main after this command if you encounter a like '<fatal: refusing to merge unrelated histories>'

then run this command below :

  • git merge main --allow-unrelated-histories

now again

  • git merge main
  • git push origin master

now you can push the changes into the main branch through github UI.