تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
الإصدار هو نسخة ثابتة من النص البرمجي. تتيح لك الإصدارات تتبُّع التغييرات التي تجريها. بعد حفظ إصدار، لا يمكنك تعديله. استخدِم الإصدارات عندما تعمل على نص برمجي يخضع للعديد من التغييرات والتكرارات. يمكن أن تتضمّن مشاريع النصوص البرمجية ما يصل إلى 200 نسخة.
يجب إنشاء إصدارات عند كتابة مكتبة. لمزيد من المعلومات، يُرجى الاطّلاع على المكتبات.
إنشاء نسخة
يتم إنشاء إصدار تلقائيًا عند إنشاء عملية نشر جديدة. يمكنك أيضًا إنشاء إصدار جديد من عملية نشر حالية باتّباع الخطوات التالية:
افتح مشروع النص البرمجي.
في أعلى الصفحة، انقر على نشر>إدارة عمليات النشر.
اختَر عملية النشر النشطة التي تريد إنشاء إصدار جديد لها، ثم انقر على رمز التعديل edit.
في قسم الإصدار، اختَر إصدار جديد.
انقر على نشر.
عرض نسخة سابقة
لعرض نسخة تم إنشاؤها سابقًا ضمن مشروع النص البرمجي، اتّبِع الخطوات التالية:
في مشروع البرنامج النصي، انقر على historyسجلّ المشاريع.
ضمن سجلّ المشروع، اختَر الإصدار الذي تريد الاطّلاع عليه. لعرض وصف الإصدار، ضَع المؤشر فوق رقم الإصدار.
مقارنة نسخة سابقة بالنسخة الحالية
لمقارنة نسخة تم إنشاؤها سابقًا بالنسخة الحالية، اتّبِع الخطوات التالية:
في مشروع البرنامج النصي، انقر على historyسجلّ المشاريع.
ضمن سجلّ المشروع، اختَر الإصدار الذي تريد الاطّلاع عليه.
فعِّل الخيار تمييز التغييرات.
استنادًا إلى التغييرات التي أجريتها منذ الإصدار المحدّد، قد تحتوي قائمة الملفات على العلامات التالية:
محدد
نوع التغيير
الوصف
تمت إضافة ملف
هذا الملف جديد في الإصدار الحالي.
تم حذف الملف
لم يعُد هذا الملف متوفّرًا في الإصدار الحالي.
تم تعديل الملف
يتضمّن هذا الملف تغييرات في الإصدار الحالي لم تكن متوفّرة في الإصدار المحدّد. للاطّلاع على التغييرات، انقر على اسم الملف.
استعادة نسخة
في مشروع البرنامج النصي، انقر على historyسجلّ المشاريع.
بجانب النسخة التي تريد استعادتها، انقر على
more_vertالمزيد من الإجراءات>استعادة هذه النسخة>استعادة.
حذف النُسخ
يمكنك حذف الإصدارات نهائيًا إذا لم تكن قيد الاستخدام في عملية نشر نشطة. لأرشفة عملية نشر أو تغيير الإصدار الذي تستخدمه عملية نشر نشطة، يُرجى الرجوع إلى إنشاء عمليات النشر وإدارتها.
حذف نسخة
لحذف إصدار واحد في كل مرة، اتّبِع الخطوات التالية:
في مشروع البرنامج النصي، انقر على historyسجلّ المشاريع.
بجانب النسخة التي تريد حذفها، انقر على
more_vertالمزيد من الإجراءات>حذف هذه النسخة>حذف.
حذف نُسخ متعددة دفعة واحدة
لحذف عدة إصدارات في الوقت نفسه، اتّبِع الخطوات التالية:
في مشروع البرنامج النصي، انقر على historyسجلّ المشاريع.
انقر على حذف النُسخ بشكل مجمّع. يظهر مربّع حوار يعرض قائمة بالإصدارات التي يمكنك حذفها. لا يتم تضمين الإصدارات المستخدَمة في عملية نشر نشطة في القائمة.
تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eVersions in Apps Script are static copies of your script, allowing you to track changes and revert to previous states if necessary.\u003c/p\u003e\n"],["\u003cp\u003eCreating versions is essential for libraries and projects undergoing frequent modifications, providing a history of your script's development.\u003c/p\u003e\n"],["\u003cp\u003eYou can easily create, view, compare, and delete versions within your Apps Script project using the provided steps.\u003c/p\u003e\n"],["\u003cp\u003eA maximum of 200 versions can be stored per script project, offering ample space for tracking your progress.\u003c/p\u003e\n"],["\u003cp\u003eVersions in use by active deployments cannot be deleted, ensuring that your deployed scripts remain functional.\u003c/p\u003e\n"]]],[],null,["# Versions\n\nA version is a static copy of a script. Versions let you track your\nchanges. Once you save a version, you can't modify it. Use versions when you're\nworking on a script that goes through many changes and iterations. Script\nprojects can have up to 200 versions.\n\nCreating versions is required when you're writing a library. For more\ninformation, see [Libraries](https://developers.google.com/apps-script/guides/libraries.html#creating-a-library).\n\nCreate a version\n----------------\n\nA version is automatically created when you create a new deployment. You can\nalso create a new version from an existing deployment by taking the following\nsteps:\n\n1. Open your script project.\n2. At the top, click **Deploy** \\\u003e **Manage\n deployments**.\n3. Select the active deployment to create a new version for and click Edit edit.\n4. In the **Version** section, select **New version**.\n5. Click **Deploy**.\n\nView a previous version\n-----------------------\n\nTo view a previously created version within your script project, take the\nfollowing steps:\n\n1. In your script project, click history **Project History**.\n2. Under **Project history**, select the version you want to view. To view the description of a version, hold the pointer over the version number.\n\nCompare a previous version to the current version\n-------------------------------------------------\n\nTo compare a previously created version to the current, or head, version, take\nthe following steps:\n\n1. In your script project, click history **Project History**.\n2. Under **Project history**, select the version you want to view.\n3. Turn on **Highlight changes**.\n\nDepending on the changes you've made since the selected version, the files list\nmight contain the following markers:\n\n| Marker | Type of change | Description |\n|--------|----------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| | File added | This file is new in the current version. |\n| | File deleted | This file is no longer present in the current version. |\n| | File modified | This file has changes in the current version that weren't present in the selected version. To view the changes, click the file name. |\n\nRestore a version\n-----------------\n\n1. In your script project, click history **Project History**.\n2. Next to the version you want to restore, click more_vert **More actions** \\\u003e **Restore this version** \\\u003e **Restore**.\n\nDelete versions\n---------------\n\nYou can permanently delete\nversions if they're not in use by an active deployment. To archive a deployment\nor change the version that an active deployment uses,\nrefer to [Create and manage deployments](/apps-script/concepts/deployments).\n\n### Delete a version\n\nTo delete one version at a time, take the following steps:\n\n1. In your script project, click history **Project History**.\n2. Next to the version you want to delete, click more_vert **More actions** \\\u003e **Delete this version** \\\u003e **Delete**.\n\n### Delete multiple versions at once\n\nTo delete multiple versions at the same time, take the following steps:\n\n1. In your script project, click history **Project History**.\n2. Click **Bulk delete versions**. A dialog shows a list of versions that you can delete. Versions in use by an active deployment aren't included in the list.\n3. Select the versions to delete and click **Delete**.\n4. In the dialog, click **Delete**."]]