Ïê½âgiteeÉÏ´«ÏîÄ¿µÄ°ì·¨
gitee ×÷Ϊº£ÄÚ×î´óµÄ git ´úÂëÍйÜƽ̨֮һ£¬ÊÇÖڶ࿪·¢Õß³£ÓõŤ¾ßÖ®Ò»¡£ÔÚÕâÀÄú¿ÉÒÔÉÏ´«×Ô¼ºµÄÏîÄ¿´úÂë²¢¾ÙÐÐÖÎÀí¡£ÏÂÃ潫ΪÄúÏÈÈÝһϣ¬ÔÚ gitee ÉÏÉÏ´«ÏîÄ¿µÄÏêϸ°ì·¨¡£
1.×¢²á¼°µÇ¼ Gitee
Ê×ÏÈ£¬ÄúÐèҪע²á²¢µÇ¼ Gitee ÕË»§¡£Ö»ÓгÉΪ Gitee µÄÓû§ºó£¬Äú²Å»ªÉÏ´«ºÍÖÎÀíÄúµÄÏîÄ¿´úÂë¡£
2.н¨¿ÍÕ»
ÔڵǼÍê³Éºó£¬Äú¿ÉÒÔ½øÈë “ÎҵĴúÂë” Ñ¡Ôñ “½¨ÉèпÍÕ»”¡£ÔÚÕâÀÄú¿ÉÒÔ¾ÙÐÐÏîÄ¿ÐÅÏ¢µÄÌîд£¬°üÀ¨¿ÍÕ»Ãû³Æ¡¢ÐÎò¡¢ÐÒéµÈµÈ¡£
3.½¨ÉèÏîÄ¿Îļþ¼Ð
ÔÚÄúµÄµçÄÔÉÏ£¬Ê¹Óà Git ÏÂÁîÐлòÕßͼÐλ¯¹¤¾ß½¨ÉèÏìÓ¦µÄÏîÄ¿Îļþ¼Ð¡£ÔÚÕâÀïÎÒÃÇÒÔÏÂÁîÐÐΪÀý£º
$ mkdir your_project_name # ½¨ÉèÏîÄ¿Îļþ¼Ð
$ cd your_project_name # ½øÈëÏîÄ¿Îļþ¼Ð
4.³õʼ»¯ Git ¿ÍÕ»
ÔÚÕâÒ»²½£¬ÎÒÃÇÐèҪʹÓà Git ¹¤¾ß½«ÏîÄ¿Îļþ¼Ðת»¯Îª Git ¿ÍÕ»¡£
$ git init
Initialized empty Git repository in /your_project_path/.git/
5.Ìí¼ÓÎļþ
½«ÐèÒªÉÏ´«µÄÎļþ¿½±´µ½ÏîÄ¿Îļþ¼ÐÏÂ
$ cp /path/to/your/file your_project_name/
6.Ìí¼ÓÔ¶³Ì¿ÍÕ»
ÔÚÍê³ÉÁËÍâµØ¿ÍÕ»µÄ³õʼ»¯²¢Ìí¼ÓÁËÏîÄ¿Îļþºó£¬ÐèÒª½«¿ÍÕ»Óë Gitee ÉϵĿÍÕ»¾ÙÐйØÁª¡£
$ git remote add origin https://gitee.com/your_username/your_project_name.git
×¢Öؽ« your_username ºÍ your_project_name Ì滻ΪÄúµÄ Gitee Óû§ÃûºÍÏîÄ¿Ãû³Æ
7.ÉÏ´«Îļþ
ÔÚÍê³ÉÁËÍâµØ¿ÍÕ»ÓëÔ¶³Ì¿ÍÕ»µÄ¹ØÁªÖ®ºó£¬ÎÒÃÇ¿ÉÒÔ½«ÍâµØµÄÎļþÍÆË͵½Ô¶³ÌµÄÏîÄ¿¿ÍÕ»¡£
$ git add .
$ git commit -m “Initial commit”
$ git push origin master
ÕâÀïÎÒÃÇʹÓÃÁË ¡°git add¡± ½«ÏîÄ¿ÖÐËùÓõ½µÄÎļþËùÓÐÌí¼Óµ½ÁËË÷ÒýÖУ¬ÔÙʹÓà ¡°git commit¡± ½«Ë÷ÒýÌá½»µ½ÁË´úÂë¿ÍÕ»ÖС£
8.Éó²éÉÏ´«Ð§¹û
ÉÏ´«Àֳɺó£¬Äú¿ÉÒÔÔÚ Gitee ÉÏÕÒµ½×Ô¼ºµÄÏîÄ¿£¬Éó²éÒѾÀÖ³ÉÉÏ´«µÄÎļþºÍ´úÂë¡£
ÒÔÉϼ´ÊÇ Gitee ÉÏ´«ÏîÄ¿µÄ°ì·¨¡£ÎÒÃÇ¿ÉÒÔʹÓà Git ÏÂÁîÐлòÕßͼÐλ¯¹¤¾ß£¬ÔÚ Gitee ÉϾÙÐÐÏîÄ¿´úÂëµÄÉÏ´«ºÍÖÎÀí¡£Ï£Íû±¾ÎÄÄܹ»¶ÔÄúÔÚ´¦ÀíÏîĿʱÓÐËù×ÊÖú¡£
ÒÔÉϾÍÊÇÏê½âgiteeÉÏ´«ÏîÄ¿µÄ°ì·¨µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡