প্রথমে মেইন ব্রাঞ্চে একটি ফাইল ক্রিয়েট করবেন “deploy.sh” নামে 

এই ফাইলে আপনার সব কমান্ড লিখে ফেলবেন। নিচে কিছু এক্সামপল দেওয়া হলো 

#!/bin/bash

# Switch to the main branch

git checkout main

#Add and commit the changes

git add .

git commit -m “Improve performance”

# Push the main branch to the remote repository

git push origin main

# Switch to the gh-pages branch

git checkout gh-pages

# Remove all files from the gh-pages branch

git rm -rf .

# Copy the contents of the src folder from the main branch

git checkout main -- src

# Move the contents of the src folder to the root of the gh-pages branch

mv src/* .

rm -rf src

# Add and commit the changes

git add .

git commit -m “Update GitHub Pages with latest changes”

# Push the gh-pages branch to the remote repository

git push origin gh-pages

# Switch back to the main branch

git checkout main

এখন স্ক্রিপটি এক্সিকিউট পারমিশন দিন 

chmod +x deploy.sh

এখন স্ক্রিপটি রান করুতে পারেন। সব গুলো কমান্ড একসাথে রান হবে। 

./deploy.sh