به نام خداوند مهربان

Creating a new repository in git

چهارشنبه, ۲۳ شهریور ۱۴۰۱، ۰۹:۴۳ ب.ظ

Creating a new repository on the command line:

touch README.md

git init

#git checkout -b main

git add README.md

git commit -m "first commit"

git remote add origin http://user:pass@xxxx.git

git push -u origin master

#git push -u origin main


Pushing an existing repository from the command line:

git remote add origin http://user:pass@xxxx.git

git push -u origin master

#git push -u origin main

Other:

git push --all origin

  • حسن دلدار

create

git

repository

نظرات  (۰)

هیچ نظری هنوز ثبت نشده است

ارسال نظر

ارسال نظر آزاد است، اما اگر قبلا در بیان ثبت نام کرده اید می توانید ابتدا وارد شوید.
شما میتوانید از این تگهای html استفاده کنید:
<b> یا <strong>، <em> یا <i>، <u>، <strike> یا <s>، <sup>، <sub>، <blockquote>، <code>، <pre>، <hr>، <br>، <p>، <a href="" title="">، <span style="">، <div align="">
تجدید کد امنیتی