برنامه نویسی

دستورات در Git – Community Dev

در اینجا چند دستور git وجود دارد که قرار است در ترمینال به شرح زیر استفاده شود ،

1.Git Add (به عنوان مثال: text.txt)

  The git add command adds a specific (text.txt) file from  
  working directory to the staging area.
حالت تمام صفحه را وارد کنید

از حالت تمام صفحه خارج شوید

2. وضعیت git

 The git status command displays the state of the working 
 directory and the staging area.
حالت تمام صفحه را وارد کنید

از حالت تمام صفحه خارج شوید

3.Git Restore -صحنه (به عنوان مثال: text.txt)

  For example If you have staged  the (text.txt)files with the 
  git add command that you later decide not to commit, you can 
  unstage these changes using this command.
حالت تمام صفحه را وارد کنید

از حالت تمام صفحه خارج شوید

4.Git اضافه کنید.

  This command will not add a specific file but it will  add 
  all modified and untracked files to the staging area.
حالت تمام صفحه را وارد کنید

از حالت تمام صفحه خارج شوید

5. فشار دادن فشار

  The git push command is used to upload local repository 
  content to a remote repository. Pushing is how you transfer 
  commits from your local repository to a remote repository.
حالت تمام صفحه را وارد کنید

از حالت تمام صفحه خارج شوید

6.Git log

  git log lists the commits made in the local repository.
حالت تمام صفحه را وارد کنید

از حالت تمام صفحه خارج شوید

7.Git Log -Oneline

  This command will display each commit on a single line.this 
  will be very useful for a project overview
حالت تمام صفحه را وارد کنید

از حالت تمام صفحه خارج شوید

8. Git Pull

  The git pull command is used to fetch and pull the 
  content from a remote repository to the local 
  repository.
حالت تمام صفحه را وارد کنید

از حالت تمام صفحه خارج شوید

نوشته های مشابه

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *

دکمه بازگشت به بالا