管理员
   
论坛积分
分
威望 点
贡献值 个
金币 枚
|
centos上安装git
. K) K! i/ `6 `# e2 q# git,yum -y install git2 \# V7 ?% n" x* \5 E) ^' Z
复制项目到本地
4 A2 U! V" C$ e# git clone 仓库地址http://开头的
|& ]5 B; F" ]2 Z% y& j9 o k2 B I! i& L* n; T1 n5 T3 F6 A' b
设置上传人的名字和密码
* ~: w, `6 y; v# git config --global user.name "oscml"7 b! ~" _( W9 U
# git config --global user.email "a@w1.hk"0 ?2 Y4 _3 k2 ]6 c) t
/ V: d i, t6 b c( h) J
. `3 O. n/ U) _上传本地数据到仓库" m, @1 O- k$ n; Q4 [/ |! {4 ?
# git add --all . 或者 # git add . 涉及到删除目录时 加 --all- t4 X, K( x2 }* I b3 q! l5 B
# git commit -m "del"
7 y, X( |9 \' g- R/ H5 a# git push origin master# git push -f origin master 强制上传( W) w9 r2 g, g+ y" }, ~
( _. f2 ?& o# L) K6 G+ ?
& s/ p/ U) m8 t5 o: Z: U- o# m* |4 }: N! r& \- P
/ k0 N4 x' s$ g, P) J
5 s, ^; D, D' m0 z4 p3 E* ^: B2 m" ^: W* y+ _1 k, s! E0 t# s
|
|