Ⅰ 濡備綍鍦↙inux涓嬩嬌鐢℅itblit宸ュ叿鍒涘緩Git浠撳簱鏈嶅姟
1.鍒涘緩Gitblit瀹夎呯洰褰
棣栧厛鎴戜滑灝嗗湪鎴戜滑鐨勬湇鍔″櫒涓婂緩絝嬩竴涓鐩褰曪紝騫跺湪璇ョ洰褰曚笅瀹夎呮渶鏂扮殑Gitblit銆
$ sudo mkdir -p /opt/gitblit$ cd /opt/gitblit
娣誨姞鏂扮殑浠撳簱
浣跨敤鍛戒護琛屽壋寤轟竴涓鏂扮殑浠撳簱
touch README.md git init git add README.md git commit -m "first commit" git remote add origin ssh://arunlinoxide@localhost:29418/linoxide.com.git git push -u origin master
璇峰皢鍏朵腑鐨勭敤鎴峰悕arunlinoxide鏇挎崲涓轟綘娣誨姞鐨勭敤鎴峰悕銆
鍦ㄥ懡浠よ屼腑push涓涓宸插瓨鍦ㄧ殑浠撳簱
git remote add origin ssh://arunlinoxide@localhost:29418/linoxide.com.git git push -u origin master
娉ㄦ剰錛氬己鐑堝緩璁鎵鏈変漢淇鏀圭敤鎴峰悕鈥渁dmin鈥濈殑瀵嗙爜銆
Ⅱ 濡備綍鍦╳indows涓嬪畨瑁匞IT
Git鏄涓涓鍏嶈垂鐨勩佸紑婧愮殑鐗堟湰鎺у埗杞浠躲傚湪Windows涓婂畨瑁単it錛屼竴鑸涓簃sysgit銆
1銆佷笅杞斤細鍦ㄥ畼鏂圭綉絝欎笅杞芥渶鏂扮増鏈銆
2銆佸畨瑁咃細鐐瑰嚮涓嬩竴姝ワ紝鐩村埌鍑虹幇姝ラや笁銆
3銆佸湪Windows Explorer integration閫夐」涓灝嗏淕it Bash here鈥濆拰鈥淕it GUI here鈥濇墦瀵瑰嬀銆
4銆佸湪鈥淎djusting your PATH environment鈥濋夐」涓錛岄粯璁ゅ嵆鍙銆
5銆佸湪鈥淐onfiguring the line ending conversions鈥濋夐」涓錛
絎涓涓閫夐」錛氬傛灉鏄璺ㄥ鉤鍙伴」鐩錛屽湪windows緋葷粺瀹夎咃紝閫夋嫨錛
絎浜屼釜閫夐」錛氬傛灉鏄璺ㄥ鉤鍙伴」鐩錛屽湪Unix緋葷粺瀹夎咃紝閫夋嫨錛
絎涓変釜閫夐」錛氶潪璺ㄥ鉤鍙伴」鐩錛岄夋嫨銆
6銆侀夋嫨鈥淔inish鈥濓紝緇撴潫瀹夎呫
7銆佸湪妗岄潰涓婏紝鍙浠ョ湅鍒板畨瑁呭悗鐨勨淕it Bash鈥濋夐」錛屽弻鍑繪墦寮錛屽彲浠ヨ繘琛屾搷浣滀簡銆