Skip to content

Instantly share code, notes, and snippets.

@gregnewman
Created January 3, 2010 19:33
Show Gist options
  • Save gregnewman/268098 to your computer and use it in GitHub Desktop.
Save gregnewman/268098 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Add dot file changes to bitbucket - to include my org files
REPOS="hgfiles"
for REPO in $REPOS
do
echo "Repository: $REPO"
cd ~/$REPO
# Add new files
hg add .
hg commit -m "$(date)"
hg push
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment