This is how I usually do it. First, sure that you are ready to merge your changes into master.
- Check if development is up to date with the latest changes from your remote server with a
git fetch
- Once the fetch is completed
git checkout master
.
- Ensure the master branch has the latest updates by executing
git pull
- Once the preparations have been completed, you can start the merge with
git merge development
- Push the changes with
git push -u origin master
and you are done.
You can find more into about git merging in the article.