How to perform git operations with shell
大家讲道理
大家讲道理 2017-05-02 09:30:36
0
2
611

Can’t write shell, please help me,
I can only execute a few git commands

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

Resolved

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