Skip to content

Instantly share code, notes, and snippets.

@moro
Created March 24, 2009 05:10
Show Gist options
  • Save moro/83959 to your computer and use it in GitHub Desktop.
Save moro/83959 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# $Id: skeleton.sh 1 2005-07-26 14:04:19Z moro $
#
git --version
mkdir git-test-dir
cd git-test-dir
git init
echo "fugafuga" >> README
git add README
git commit -m "1st"
echo "piyopiyo" >> README
git add README
git rm --cached README
git status
cd -
exit 0
# outputs
git version 1.6.2
Initialized empty Git repository in /Users/moro/tmp/git-test-dir/.git/
[master (root-commit) b07c504] 1st
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 README
rm 'README'
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# deleted: README
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# README
/Users/moro/tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment