برنامه نویسی

دستورات در Git – 2

و تعداد کمی دیگر برای اضافه کردن به دستورات Git ،

1.git diff “bshshshd” “ndhhdhdji”

  The git diff  "bshshshd" "ndhhdhdji" command helps you to 
  see,compare the difference between two commit hashtags so 
  you can easily find the changes between them.
حالت تمام صفحه را وارد کنید

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

شاخه 2.git و چرا شعبه git

  The branches in git are used  When you want to add a new 
  feature or fix a bug in your code so you can spawn a new 
  branch and make the changes and you can push it to the main 
  branch

  The git branch command will show the branches in your 
  repository and the current branch you are in will be 
  highlighted with the (*) symbol (e.g: *main).
حالت تمام صفحه را وارد کنید

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

3. شاخه بزرگ

  This command will create a branch and while you creating 
  a branch you should never include spaces in the branch name 
  instead use (-) or (_) inbetween the name .
حالت تمام صفحه را وارد کنید

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

4.Git Checkout -B

  This command also create a branch and switch to the created 
  branch immediately
حالت تمام صفحه را وارد کنید

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

5.Git Checkout & Git Switch

  Both checkout and switch does the same thing by switching
  between branch 
حالت تمام صفحه را وارد کنید

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

6.Git ادغام

  If you want to merge the feature branch you should switch or    
  checkout to the main branch and then you should use ,
                git merge 
  this will merge the changes to the main branch.
حالت تمام صفحه را وارد کنید

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

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

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

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

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