Skip to content

Instantly share code, notes, and snippets.

@MewX
Created May 13, 2016 07:05
Show Gist options
  • Save MewX/f205a5449fd30e76ff16b2a16e9446d7 to your computer and use it in GitHub Desktop.
Save MewX/f205a5449fd30e76ff16b2a16e9446d7 to your computer and use it in GitHub Desktop.
Daily push script for Coding.net coin, but it's useless now.
# 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