如何用shell执行git操作
大家讲道理
大家讲道理 2017-05-02 09:30:36
0
2
576

不会写shell,求助,
能只执行几条git 指令

cd /home/xx
git add .
git commit -m '时间,如2016-03-03 12:0:03'
git push origin master

已解决

cd /hmoe/xx
backtime=`date +%Y%m%d%H%M%S`
git add .
git commit -m bk_${backtime}
git push origin master
大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
Ty80

You also need to create a remote library,
git remote add origin "xx"
The double quotes are the .git file of the remote git, such as
https://github.com/yourname/yourproject.git

为情所困

I wrote a similar script in php.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!