Introducing inrep

inrep is a shell script that automates repository initialization right from your terminal.

So, what does it do?

Well, it oversimplifies the whole procedure for you when you follow the standard methodology:

  • You go to your GitHub account.
  • You initialize a repository based on a name of your choice.
  • You clone it locally.
  • You create a file or a volume of files.
  • You add it to repository.
  • You commit them.
  • You push them back to your GitHub account.

Imagine having to repeat the procedure for a number of projects...

So, what can we do to improve this not so easy set of steps?

Enter, inrep!

Here is a set of steps it runs for you by freeing your hands from unnecesary repetitive typing pattern:

  • It makes an empty directory for you based on the name you give it.
  • It initializes that directory for the first time.
  • It creates a README.md file and commits it.
  • It pushes the changes on your GitHub account based on the username you either initialized at the beginning of the script or you have passed as an argument.

Let's see an example:

$ sh inrep.sh -u johndoe -p FooDemo
$ sh inrep.sh --project BarDemo2

As you can see, in the second case I did not use -u or --user flag, because I have created a username variable for you inside inrep.sh so you can set it explicitly with your username for the sake of automation.

Frankly, there's nothing else I should explain to you; that simple it is for the sake of simplicity and automation.

I hope you guys find it useful.

Happy coding, enjoy!