Saturday, June 15, 2024

How to merge a branch to main branch in Github.


In Terminal or Command Prompt: 

git checkout main [switch to main branch]

git pull origin main
 [grab latest updates from main branch]

git merge master merge [master branch to your main branch]

git push origin main [push your changes to main]

No comments:

Post a Comment

Command to install direct admin on ubuntu 22.04

 sudo apt update sudo apt upgrade sudo apt install wget gcc g++ make flex bison openssl libssl-dev cd /usr/local/src wget https://www.direct...