פקודות ומדריכים חשובים של Git

כיצד לקבל עזרה עבור פקודת Git

עזרה בגיטים [-a|–all|-i|–info|-m|–man|-w|–web] [COMMAND]

דוגמה: עזרה בגיטים (git help)

זה מפעיל דפדפן ומציג עזרה ב-HTML.

הגדרת מאגר מקומי וביצוע דחיפה ראשונית:

cd my_project
git init
git add *
git commit -m "My initial commit message"
git remote add origin git@example.com:my_project.git
git push -u origin master

מאגר התשלום

git clone git://github.com/schacon/grit.git

כדי לבצע commit שינויים למאגר המקומי, פשוט הוסף, ולאחר מכן בצע commit. אם ברצונך לדחוף את הענף המקומי/שינויים למאגר המרוחק, פשוט בצע את הפקודה push למטה.

git add --all

git commit --all

git push

פקודת דחיפה למאגר

git push <remote> <local branch name>:<remote branch to push into>
git push [--all | --mirror | --tags] [--follow-tags] [-n | --dry-run] [--receive-pack=]
           [--repo=] [-f | --force] [--prune] [-v | --verbose] [-u | --set-upstream]
           [--force-with-lease[=[:]]]
           [--no-verify] [ […]]

פקודות נוספות ניתן למצוא בקישורים הבאים.

גיט יומיומי עם 20 פקודות

https://www.kernel.org/pub/software/scm/git/docs/everyday.html

מדריכי גיט טובים

מדריך 1 ראשון להכין – http://git-scm.com/docs/gittutorial

מדריך ב-2 שניות להכנה – http://git-scm.com/docs/gittutorial-2.html

הדרכה נוספת – http://www.vogella.com/tutorials/Git/article.html#firstgit_repostatus

2 responses to “פקודות ומדריכים חשובים של Git”

  1. I wanted to thank you for this wonderful read!!
    I definitely loved every bit of it. I have got
    you book-marked to check out new stuff you post…

  2. Wow, this paragraph iѕ pleasant, my younger
    sisster iss analyzing these kinds oof things,
    thus I am going to inform her.

השאר תגובה

גלה עוד מהבלוג של Velislav Krastev

הירשם עכשיו כדי להמשיך לקרוא ולקבל גישה לארכיון המלא.

המשך לקרוא