Use && to combine git commands example: git checkout branch_name && git fetch && git pull && git add --all && git commit -m "latest changes" && git push