I am really new to GIT. My goal is to sync my Eclipse projects between PC / laptop - and I thought it would be a good idea to use GIT for this. So I created my repository, got it on Github, etc.
I wrote a small Bash - Script that should do the synchronization for me. This seems to work, but I'm not sure if this is the best way to do:
#!/bin/bash
cd "D:\Projekte\Software Projekte"
git add .
git commit -a -m "Auto-Git-Backup $(date "+%d.%m.%Y %H:%M "|sed -e ' s/\"/\\\"/g' )"
git push -u origin master
git pull
Is that a good idea? Should I use something like http://code.google.com/p/git-sync/ instead? What bothers me about this script is that I have to enter the password twice.
source
share