Skip to content

Instantly share code, notes, and snippets.

@fj
Created June 12, 2010 21:55
Show Gist options
  • Save fj/436125 to your computer and use it in GitHub Desktop.
Save fj/436125 to your computer and use it in GitHub Desktop.
[johnf@genesis][2010/06/12|17:53:00]
[/tmp]> mkdir foo
[johnf@genesis][2010/06/12|17:53:36]
[/tmp]> cd foo
[johnf@genesis][2010/06/12|17:53:39]
[/tmp/foo]> git init
Initialized empty Git repository in /tmp/foo/.git/
[johnf@genesis][2010/06/12|17:53:40]
[/tmp/foo]> touch readme
[johnf@genesis][2010/06/12|17:53:51]
[/tmp/foo]> git add readme
[johnf@genesis][2010/06/12|17:53:54]
[/tmp/foo]> git commit -m "Initial commit."
[master (root-commit) 9273088] Initial commit.
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 readme
[johnf@genesis][2010/06/12|17:54:11]
[/tmp/foo]> chmod +x readme
[johnf@genesis][2010/06/12|17:54:14]
[/tmp/foo]> git status
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: readme
#
no changes added to commit (use "git add" and/or "git commit -a")
[johnf@genesis][2010/06/12|17:54:18]
[/tmp/foo]> git add readme
[johnf@genesis][2010/06/12|17:54:23]
[/tmp/foo]> git commit -m "Made readme executable."
[master 063bcc1] Made readme executable.
0 files changed, 0 insertions(+), 0 deletions(-)
mode change 100644 => 100755 readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment