File: git-setup

package info (click to toggle)
git-extras 1.7.0-1.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 696 kB
  • sloc: sh: 381; makefile: 52
file content (8 lines) | stat: -rwxr-xr-x 162 bytes parent folder | download
1
2
3
4
5
6
7
8
#!/bin/bash

dir=$(test -z "$*" && echo "." || echo "$*")
mkdir -p "$dir" \
  && cd "$dir" \
  && git init \
  && git add . \
  && git commit -m 'Initial commit'