اذهب إلى المحتوى
  • 0

مشكلة عدم رفع الملفات على git

Najah Alsaker

السؤال

استخدم نفس الطريقة الاعتيادية الموجودة بالموقع لرفع الملفات ولكنه بالرغم من ذلك لا يتم رفعها 

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\coffee>git init
Reinitialized existing Git repository in C:/coffee/.git/

C:\coffee>git add .
warning: LF will be replaced by CRLF in dist/css/product1.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in dist/css/style.css.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in dist/main.js.
The file will have its original line endings in your working directory

C:\coffee>git add .

C:\coffee>git commit -m "first commit"
[main 9738844] first commit
 11 files changed, 16 insertions(+), 13 deletions(-)
 rewrite dist/contact.html (67%)
 rewrite dist/distributors.html (90%)
 rewrite dist/history.html (95%)
 rewrite dist/index.html (93%)
 rewrite dist/product1.html (95%)
 rewrite dist/product2.html (95%)
 rewrite dist/product3.html (91%)

C:\coffee>git branch -M main

C:\coffee>git remote add origin https://github.com/najah18/cof.git
error: remote origin already exists.

C:\coffee>git push -u origin main
Username for 'https://github.com': najah18
Password for 'https://najah18@github.com':
remote: Support for password authentication was removed on August 13, 2021. Plea
se use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requireme
nts-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/najah18/coffee.git/'

C:\coffee>

 

رابط هذا التعليق
شارك على الشبكات الإجتماعية

Recommended Posts

  • 0
بتاريخ 11 دقائق مضت قال محمد أبو عواد:

المشكلة في كلمة المرور أو اسم المستخدم المدخلين, أرجو منك التأكد جيدا من صحتهما ثم حاولي مرة أخرى

متاكدة منها ولكن انظلر يظهر لي الخطا عند اضافة الامر  git remote add origin https://github.com/najah18/cof.git

رابط هذا التعليق
شارك على الشبكات الإجتماعية

  • 0
بتاريخ الآن قال Najah Alsaker:

متاكدة منها ولكن انظلر يظهر لي الخطا عند اضافة الامر  git remote add origin https://github.com/najah18/cof.git

هذا الخطأ بسبب أنك تستخدمين هذا الرابط أو المستودع مسبقا, هل أنشاتيه بشكل جديد أم مستخدم مسبقا؟

رابط هذا التعليق
شارك على الشبكات الإجتماعية

  • 0

منذ التاريخ  August 13, 2021 :تم ألغاء الدعم لهذه الطريقة (password authentication ) و يجب ان تستخدمي 

 PAT (Personal Access Token) 

ويكنك اضافة PAT من خلال الخطوات الاتية 

  1. في حسابك لموقع Github اذهبي الي
  2. Settings => Developer Settings => Personal Access Token => Generate New Token
  3. انسخ PAT
  4. ثم اذهبي الي 
  5. control panel=> Credential Manager =>  Windows Credentials => git:https://github.com
  6. ثم استبدلي كلمة السر ب PAT
تم التعديل في بواسطة Ziyad Hasan
رابط هذا التعليق
شارك على الشبكات الإجتماعية

  • 0
بتاريخ 9 دقائق مضت قال محمد أبو عواد:

هذا الخطأ بسبب أنك تستخدمين هذا الرابط أو المستودع مسبقا, هل أنشاتيه بشكل جديد أم مستخدم مسبقا؟

ظهر لي نفس الخطا مسبقا لذلك قمت بحذف المستودع وانشاء هذا المستودع الجديد ولكن نفس المشكلة

رابط هذا التعليق
شارك على الشبكات الإجتماعية

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...