Created
May 13, 2016 07:05
-
-
Save MewX/f205a5449fd30e76ff16b2a16e9446d7 to your computer and use it in GitHub Desktop.
Daily push script for Coding.net coin, but it's useless now.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add key | |
cd /root/documents/coding/test | |
eval `ssh-agent -s` | |
ssh-add ../rsa.key | |
# master push | |
git checkout master | |
git pull | |
#date > date.txt | |
#git add --all | |
#git commit -m "daily push" | |
#git push origin master | |
# temp push | |
git checkout temp | |
date > date.txt | |
git add --all | |
git commit -m "daily push temp" | |
git push origin temp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment