(4)git
2017-06-29 本文已影响2人
小王www
老徐练习github地址
http://git.istester.com:3000/git/istester.git
istester
创建本地文件夹及文件,打包
mkdir -p src/{a,b,c}

tar -czvf ./APP/bak/istester.tar.gz ./git_1st/src/{a,b,c} ./git_1st/config.xml

创建github
创建git repository
https://github.com/TracyWangE/git_1st.git
由于git 仓库建在~/git_1st/,所以cp istester.tar.gz ~/git_1st/


配置自己的github信息,与github上的仓库建立连接,并push包上去
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git add istester.tar.gz
git commit -m "first commit"
git remote add origin https://github.com/TracyWangE/git_1st.git
git push origin master



clone github仓库
clone github上的包到APP/www
将克隆下来的包放于APP/www 部署即可

建立的git 仓库是git_1st

ps.由于打包的时候把git_1st下面的打包,所以解压出来在~/APP/www/里多了git_list文件夹
