Create a website on GitHub

إنشاء موقع على GitHubإنشاء موقع على GitHubإنشاء موقع على GitHubإنشاء موقع على GitHubإنشاء موقع على GitHub

قد يكون إنشاء موقع ويب أمرًا صعباً، خاصة إذا كنت جديدًا في تطوير الويب. لحسن الحظ، تتوفر الأدوات التي تجعل العملية أسهل ويسهل الوصول إليها. إحدى هذه الأدوات هي Github ، وهي منصة لاستضافة ومشاركة التعليمات البرمجية التي أصبحت خيارًا لاستضافة مواقع الويب. في منشور المدونة هذا ، سنوجهك خلال عملية إنشاء موقع الويب الخاص بك على خادم GitHub. سواء كنت مبتدئًا أو مطورًا متمرسًا ، ستوفر هذه المقالة المعلومات التي تحتاجها للبدء. لذلك دعونا نبدأ!

  1. قم بإنشاء مستودع جديد:
    • انتقل إلى حساب GitHub الخاص بك وأنشئ مستودعًا جديدًا.
    • قم بتسمية المستودع بالتنسيق التالي: <username>.github.io (استبدل باسم مستخدم GitHub الخاص بك).
  1. قم بإنشاء ملف index.html:
    • Create a new file called index.html in the root of your repository.
    • Add some basic HTML code to this file.
  1. Commit and push your changes:
    • Add the index.html file to your repository using the git add command.
    • Commit your changes using git commit -m “Initial commit”.
    • Push your changes to the remote repository using git push origin main.
  1. Enable GitHub Pages:
    • Create a new file called index.html in t
    • Go to the “Settings” tab of your repository.
    • Scroll down to the “GitHub Pages” section.
    • Select the “main” branch as your source.
    • Click “Save”.
  1. View your website:
    • Add the index.html file to your repository using the git add command.
    • Wait for a few minutes until GitHub Pages have finished deploying your website.
    • Visit your website at https://<username>.github.io.

That’s it! You now have a basic website up and running on GitHub Pages. From here, you can continue to add new pages and content to your website by creating new HTML files and pushing them to your repository.

Leave a comment