To run, clone the repository and run the command
To checkout a branch to develop before merging, use git checkout -b [branch-name]
To update your branch with changes from the main branch, do git fetch origin main
in your branch, then run
git merge origin/main
.
Run git commit -m "merge main branch"
then git push
.
Always make sure your branch is up to date with the main branch before pushing changes to avoid overwriting code.