git remote show origin 查看git远程信息
git remote set-url origin [email protected]:woxue/woxueadmin.git 更新远程仓库地址
git clone [email protected]:woxue/woxueadmin.git
git config --global user.name yaobin
git config --global user.email [email protected]
ssh -T [email protected]
rm -rf tpl_c/*删除文件夹下所有的文件
chmod -R 777 tpl_c/
======================================
--比较两个commit的不同
git diff 4f1c631e188e73bdd04efd907db2e3e3a9ec0349 5c08bf5798c8c57489605bc13a6204d2d53a9e7b >>diff.text
git diff 4f1c631e188e73bdd04efd907db2e3e3a9ec0349 >>diff1.text
==============================================
上线打包
git archive -o Vxxxxxx.711---.zip newId $(git diff --name-only oldId newId )
以下是其他的Git命令参考
切换到root user, sudo su -
Git Pull 代码,需要解决RSAKey的问题
git pull origin develop
start PHP 代码 /etc/init.d/php-fpm start
Nginx 配置 vim /usr/local/nginx/conf/nginx.conf
cd /neworiental/web/
git clone http://xxxxx/xxx.git (需要解决不用密码Clone)
git fetch –p 获取branch
git status
git checkout develop 切换到开发branch
chown -R www.www woxue/
vim /usr/local/nginx/conf/nginx.conf
etc/init.d/nginx reload
/etc/init.d/nginx start
/etc/init.d/php-fpm start
vim config.inc.php
git pull origin develop
vim /usr/local/nginx/conf/nginx.conf
cd /neworiental/web/woxue/wwwroot/
vim config.inc.php