Skip to content

craigem/timb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timb - The Internet is My Backup

USE CASE: You have a local git repo that you wish to push to both your own git server, github and bitbucket.

Prerequisites

  • A local desktop or laptop with git installed
  • Your own server with git installed
  • Github account
  • Bitbucket account

This program:

  • Reads your local ~/.netrc
  • Gets a repo name and description from arguments
  • Builds a git repo locally
  • Adds a README.md and a LICENCE. Commits the changes.
  • Builds a git repo hosted via your remote git server
  • Adds a git hook for automatically pushing to configured remotes from your remote
  • Adds a remote for github on your remote server.
  • Adds a remote for bitbucket on your remote server.
  • Creates a repo at GitHub.
  • Creates a repo at bitbucket.
  • Pushes to remote.

Usage

  • If you don't already have one, copy the example netrc to ~/.netrc and replace the example content with your own credentials to GitHub and bitbucket.
  • Copy the example timbrc to ~/.timbrc and set the variables to suit your own environment.

To Do

  • Error handling. There's a lot more of it needed.
  • Removing all the named repo's with a "-r" argument.
  • Move handling of LICENCE and README files into options
  • Make the socialrepos function iterate through a list of enabled git hosts

About

The Internet is My Backup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages