1.linux githubå·¥å
· å®å
¨å
2.gitlinuxå®è£
3.linuxä¸è½½git
linux githubå·¥å · å®å ¨å
æã gitæ¯ä¸ä¸ªå¼æºç项ç®ï¼å¯ä»¥ç´æ¥ä¸è½½æºç ç¼è¯å®è£ ã å¨RHEL/CentOS/Fedoraçç³»ç»ä¸ï¼é 好软件ä»åºï¼ä½¿ç¨yum install gitå°±å¯ä»¥å®è£ å¨Debian/Ubuntuä¸ï¼å使ç¨sudo apt-get install gitå®è£
gitlinuxå®è£
macç³»ç»æä¹å®è£ gitï¼1ãæå¼è¹æçµèï¼ç¹å»æµè§å¨è¾å ¥gitï¼ç¹å»éæ©çæ¬âmacOSâï¼
2ãéæ©ä¸æ¡ä¸gitåºç¨ï¼è¿è¡ä¸è½½ï¼
3ãç¹å»âä¸è½½âæé®ï¼å®æä¸è½½å®è£ å³å¯å¨è¹æçµèä¸ä¸è½½git
linuxå¦ä½ä»githubä¸è½½æ件ï¼
å®è£ gitå·¥å ·ï¼ç¶åç¨gitcloneå½ä»¤å éä¸æ¥ã
tortoisegitæä¹ä½¿ç¨ï¼
Gitç使ç¨è¶æ¥è¶å¹¿æ³ä½¿ç¨å½ä»¤æ¯è¾éº»ç¦,下载下载模糊矩阵相似源码ä¸é¢è®²è§£ä¸ä¸tortoisegitç使ç¨å ä¸è½½å®è£ git(msysgit)åtortoisegit,å®è£ åæ示éå¯çµè,ä¸è§£é
1.æ¾ä¸ä¸ªæ件夹åä»åºè¿éç¨repositoryshared.gif,空ç½å¤ç¹å»å³é®åºç°ä»¥ä¸èå,åå»ºå ±äº«ä»åºå¨å¼¹åºç对è¯æ¡å¾émakeitbare第ä¸æ¬¡çè¯ä¼æ示æ¯ä¸ªç©ºä»åº
2.å¨å·¥ä½ç®å½ä¸,å 确认身份TortoiseGit-->Setting,å¨æå¼ç对è¯æ¡é,左边égit,å³è¾¹å°±ä¼åºç°åç¨æ·ååé®ç®±çå°æ¹å¨ç¨æ·å·¥ä½ç®å½ä¸ç¹å»å³é®,éæ©gitclone,å¼¹åºå¯¹è¯æ¡ç¹å»okå,åç°æ¤æ件夹ä¸å¤äºä¸ä¸ªéèçæ件夹.git,åcloneæå
3.ethanç¨æ·å¨.gitå级ç®å½ä¸æ·»å ä¸ä¸ªæ件index.jsp,éé¢åå 容"hellogit!"ç¶åå³é®Tortoisegit-->add,å®æåindex.jspåæ+å·ç¶åå³é®GitCommit->"master"...å¨å¼¹åºç对è¯æ¡,è¾å ¥messageä¿¡æ¯åç¹ok,æ¤æ¶index.jspåæ对å¾,æ交å°äºæ¬å°æå¡å¨ç¶åå³é®Tortoisegit-->pushåæ交å°äºè¿ç¨æå¡å¨
4.otherç¨æ·å¨otherç¨æ·çå·¥ä½ç®å½ä¸,è¾å ¥ç¨æ·ååé®ç®±å,cloneåpull,åç°äº.gitæ件夹åindex.jspæå¼index.jspè¾å ¥otherupdatefileä¿åå,index.jspåæ红è²çæå¹å·æ¤æ¶å³é®æ²¡æaddå®é ä¸æ¯å·¥å ·å¸®add,ç¶åcommitåpushethanç¨æ·pullä¸æ¥,åç°index.jspéæäºotherupdatefile
5.å²çªè§£å³æå²çªçè¯,TortoiseGit-->Editconflictsæ¯è¾ä¹å解å³å²çªä¹åTortoiseGit-->Resolveç¶åcommitåpush
ææ ·å¨cmdä¸ä½¿ç¨gitå½ä»¤ï¼
æ¹æ³1-å®è£ æ¶è®¾ç½®1å¨å®è£ gitçæ¶åæâUsegitfromthewindowscommandprompt"çéæ©ä¸2å®è£ æåä¹åï¼æå¼cmdï¼è¾å ¥gitå½ä»¤ENDæ¹æ³2-gitç®å½å å ¥ç¯å¢åéå®è£ 好gitï¼æ²¡æéæ©æ¹æ³1ä¸çé项ï¼é»è®¤æ åµä¸å¨cmdéä¸è½è¿è¡gitå½ä»¤è¿å ¥ç¯å¢åéçé¢(windowsé®+R)->é«çº§ç¯å¢è®¾ç½®->ç¯å¢åééä¸Path项ç¶åç¹å»ç¼è¾ægitçå®è£ ç®å½C:ProgramFiles(x)Gitcmdå å°æåï¼å¹¶ç¡®å®ãç¶åå°cmdéè¾å ¥gitå½ä»¤å°±å¯ä»¥æ§è¡äº
ideaå¦ä½é ç½®gitï¼
gitå¨IntelliJIDEAä¸ç使ç¨
1ãIntelliJIDEAä¸é ç½®gitæ¬å°å®è£ 好gitï¼å¹¶é ç½®åççSSHkeyãIntelliJIDEA--Performance--VersionControl--gitå°èªå·±å®è£ gitçå¯æ§è¡æ件路å¾å¡«å ¥PathtoGitexecutableï¼ç¹å»Testæµè¯ä¸ä¸ã
2ãgitcloneVCS--Git--Clone
3ãgitcheckoutå¨IntelliJIDEAå³ä¸è§æä¸ä¸ªgitçåæ¯ç®¡çï¼ç¹å»ãéæ©èªå·±éè¦çåæ¯ï¼checkoutåºæ¥ã
4ãgitdiffå¨localchangesä¸éä¸è¦æ¯å¯¹çæ件ï¼å³é®éæ©showdiff便å¯ä»¥æ¥çæ件çåå¨ãæè éæ©Revertæ¾å¼æ件çæ¹å¨ã
5ãgitlogå¨VersionControlä¸éæ©Logï¼å¯ä»¥æ¥çæ交åå²ã
6ãgitcommité»è®¤å¯¼å ¥çå·¥ç¨å·²ç»gitaddå å ¥åºè·è¸ªåºäºãé便修æ¹ä¸ä¸pom.xmlæ件ï¼å ¶ä¿®æ¹çæ件ä¼æ¾ç¤ºå¨VersionControlä¸çlocalchangesä¸ã
7ãgitpushVCS--Git--Pushå°æ¬å°ä»£ç æ交å°è¿ç¨ä»åºã
8ã解å³å²çªåºç°å²çªçæ¶ååªè¦å¨ç¸åºçtagä¸è§£å³å³å¯ã
ä¿®æ¹äºé¡¹ç®ä¸éèçï¼gitæ件ä¸çconfigéé¢çå°åå°±è¡äºï¼ç¨å½ä»¤è¡ä¸å¥è¯çäºæ ï¼gitremoteset-urloriginxxxxxxxxï¼ä½ æ¬å°è³å°å®è£ äºgitbashï¼åè楼ä¸çå½ä»¤å°±å¥½ãå¾å½¢åé¢å¤è£ 个ä¹é¾å£³æè ç¨gitguiãIdeaå æ¬Eclipseä¹ç±»çIDEéæçgitæ件å½ä»¤æ¯è¾å°ï¼åªæ¯å¸¸ç¨çãgitåideæå¥å ³ç³»ï¼ç´æ¥gitå½ä»¤ä¿®æ¹å°±è¡äºãçé¢æ²¡æå°±å½ä»¤è¡äºã
linuxä¸è½½git
gitä¸çä¸è¥¿æä¹ä¸è½½ãå®è£ ï¼gitæ¯ä¸ä¸ªä»£ç 代ç 管çè½¯ä»¶ä½ æ¬å°è¦å®è£ è¿ä¸ªè½¯ä»¶
gitclone
2024-11-23 02:55
2024-11-23 02:35
2024-11-23 01:56
2024-11-23 01:36
2024-11-23 01:18
2024-11-23 01:17
2024-11-23 01:09
2024-11-23 00:41