ãã注æï¼å®è£
çåææ¡ä»¶æ¯é
置好Gitçç¸å
³ç¯å¢æè
å®è£
好git.exeï¼æ¤å¤ä¸åéç¹æå
ããä¸ä¼ çæ¥éª¤ï¼(æ¬æéç¨git å½ä»¤çé¢è¿è¡æä½)
ããï¼ git config --global user.email "you@example.com"
ããgit config --global user.name "Your Name"ï¼å®ç°ç»é
ãã1.è¿å
¥æ¬å°ç项ç®ç®å½ï¼å³é®âGit Bash hereâ,è°åºgitå½ä»¤è¡çé¢ï¼ç¶åè¾å
¥
ãã[plain] view plain copy å¨CODEä¸æ¥ç代ç çæ´¾çå°æç代ç ç
ããgit init
ãã2.å°±æ¯å°ç®å½ä¸çæææ件ä¸ä¼ ï¼ä¹å¯ä»¥å°â.âæ¢æå
·ä½çæ件å
ãã[plain] view plain copy å¨CODEä¸æ¥ç代ç çæ´¾çå°æç代ç ç
ããgit add .
ãã3.å°é¡¹ç®æ交å°gitHub
ãã[html] view plain copy å¨CODEä¸æ¥ç代ç çæ´¾çå°æç代ç ç
ããgit commit -m "注éè¯å¥"
ãã4.å¨githubä¸å建æ°çrepository
ãã5.ç¹å» âCreate repositoryâ跳转å°ä¸ä¸ªè¿æ¥ï¼å¦ä¸çº¢è²åè·åå°æ¬é¡¹ç®çgithubå°å
ãã6.å°æ¬å°ç代ç å
³èå°githubä¸
ãã[html] view plain copy å¨CODEä¸æ¥ç代ç çæ´¾çå°æç代ç ç
ããgit remote add origin 项ç®çgithubå°å
ãã7.ä¸ä¼ 代ç å°githubä¹åéè¦å
pull
ãã[plain] view plain copy å¨CODEä¸æ¥ç代ç çæ´¾çå°æç代ç ç
ããgit pull origin master
ãã8.ä¸ä¼ 代ç å°è¿ç¨ä»åº
ãã[plain] view plain copy å¨CODEä¸æ¥ç代ç çæ´¾çå°æç代ç ç
ããgit push -u origin master
ããä¹åè¾å
¥è´¦å·ï¼å¯ç ,ä¸ä¼ å°github
温馨提示:内容为网友见解,仅供参考