Github: צור וסנכרן מזלג
פונקציה מרכזית בגיתוב היא "פורקינג", איתו תוכלו לתרום לפרויקטי פיתוח קיימים.
גיתוב: מה זה מזלג?
המזלג הוא פיצול מעץ קוד המקור של פרויקט, עליו תוכלו לבצע שינויים משלכם. הפונקציונליות והאיכות של קוד המקור העיקרי אינה מושפעת. המזלג הוא עותק מקומי בו תוכלו להתנסות בקוד כאילו הייתם בסביבה מאובטחת. אם השלמת את השינוי ואתה מעוניין לשלב אותו בפרויקט המדובר, השתמש ב"בקשת משיכה ".
צור מזלג בגיתוב
עם השלבים הקצרים הבאים אתה יוצר מזלג ב- gibthub:
- נווט לפרויקט קוד המקור הרצוי אליו תרצה להשתתף.
- לאחר כניסה מוצלחת תוכלו כעת ללחוץ על כפתור "מזלג".
- Github יוצר כעת עותק של המאגר הרלוונטי בשרת.
- לאחר מכן עליך ליצור עותק מקומי של הפרויקט במחשב שלך. לשם כך, לחץ על כפתור "שיבוט בשולחן העבודה" כדי שתוכל לערוך את הפרויקט בשולחן העבודה של Github.
- בחר באפשרות "הפעל שולחן עבודה של Github" אם התוכנית טרם התחילה. ואז בחר בספרייה במחשב בה יש לשמור את קוד המקור.
- כעת תוכל לערוך ולבדוק את קוד המקור במחשב שלך. לדוגמה, אתה יכול להשתמש ב- Atom בחינם כעורך או כל עורך אחר תואם קוד.
לבסוף: הצע מזלג לאחרים
אם אתה מרוצה מהשינויים שלך, אתה יכול להציע אותם לבעלי הפרויקטים ב- github.
- בשולחן העבודה של Github לחץ על "שינויים".
- תחת "שינויים לא מחויבים" כעת עליך לכתוב סיכום קצר של כל השינויים שביצעת זה עתה כדי שניתן יהיה להקצות ולבדוק את השינויים שלך.
- אם ברצונך כעת להעלות את כל השינויים לפרויקט, לחץ על "סנכרון". שינויי הקוד שלך ינחתו בשרת github. עם זאת, הם עדיין נשארים במזלג שלהם, כלומר הענף של קוד המקור של הפרויקט.
- לבסוף היכנס לאתר github.com והיכנס. לחץ על "השווה ובקשה למשוך".
- כעת תראה דף דיון המתאר את חבילת השינויים שלך. כאן עליכם להסביר באופן משכנע מדוע ואיך הפרויקט יכול להפיק תועלת מהשיפורים שלכם.
- לאחר מכן לחץ על "שלח בקשת משיכה" והציע את השיפורים שלך לפרויקט המדובר.
- בעלי הפרוייקט יבדקו כעת את ההצעה שלך ויאשרו אותה או יחזירו אותה לבירור.
כאן אנו מציגים לקוח Windows לפלטפורמת הקוד הפתוח Github.