home
/
code
/
khome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add screencast script
[khome.git]
/
home
/
bin
/
x
diff --git
a/home/bin/x
b/home/bin/x
index
59a4710
..
eb5aee2
100755
(executable)
--- a/
home/bin/x
+++ b/
home/bin/x
@@
-6,12
+6,13
@@
name=$(echo "$@" | sed 's/\s\+/-/g');
if [ "$name" != "" ];
then
if [ "$name" != "" ];
then
- timestamp=$(date +'%F--%H-%M-
-
%S');
+ timestamp=$(date +'%F--%H-%M-%S');
directory="$HOME/x/$timestamp--$name";
mkdir -p "$directory";
cd "$directory";
printf '# %s\n' "$name" > README;
git init >&2
directory="$HOME/x/$timestamp--$name";
mkdir -p "$directory";
cd "$directory";
printf '# %s\n' "$name" > README;
git init >&2
+ git commit --allow-empty -m 'Root commit' >&2
git add . >&2
git commit -m 'Initial commit' >&2
echo "$directory";
git add . >&2
git commit -m 'Initial commit' >&2
echo "$directory";
This page took
0.026138 seconds
and
4
git commands to generate.