注æï¼å®è£ çåææ¡ä»¶æ¯é 置好gitçç¸å ³ç¯å¢æè å®è£ 好git.exeï¼æ¤å¤ä¸åéç¹æå
ä¸ä¼ çæ¥éª¤ï¼(æ¬æéç¨git å½ä»¤çé¢è¿è¡æä½)
ï¼ git config --global user.email "you@example.com"
git config --global user.name "Your Name"ï¼å®ç°ç»é
1.è¿å ¥æ¬å°ç项ç®ç®å½ï¼å³é®âGit Bash hereâ,è°åºgitå½ä»¤è¡çé¢ï¼ç¶åè¾å ¥
git init
2.å°±æ¯å°ç®å½ä¸çæææ件ä¸ä¼ ï¼ä¹å¯ä»¥å°â.âæ¢æå ·ä½çæ件å
git add .
3.å°é¡¹ç®æ交å°gitHub
git commit -m "注éè¯å¥"
4.å¨githubä¸å建æ°çrepository
5.ç¹å» âCreate repositoryâ跳转å°ä¸ä¸ªè¿æ¥ï¼å¦ä¸çº¢è²åè·åå°æ¬é¡¹ç®çgithubå°å
6.å°æ¬å°ç代ç å ³èå°githubä¸
[html] view plain copy
git remote add origin 项ç®çgithubå°å
7.ä¸ä¼ 代ç å°githubä¹åéè¦å pull
[plain] view plain copy
git pull origin master
8.ä¸ä¼ 代ç å°è¿ç¨ä»åº
[plain] view plain copy
git push -u origin master
ä¹åè¾å ¥è´¦å·ï¼å¯ç ,ä¸ä¼ å°github
åèæç« ï¼http://blog.csdn.net/hanhailong726188/article/details/46738929