Skip to content

Instantly share code, notes, and snippets.

@vortec
Created October 11, 2013 15:31
Show Gist options
  • Select an option

  • Save vortec/6936776 to your computer and use it in GitHub Desktop.

Select an option

Save vortec/6936776 to your computer and use it in GitHub Desktop.
[fkochem@FK] ~/temp $ mkdir blubb †: 0
[fkochem@FK] ~/temp $ cd blubb †: 0
[fkochem@FK] ~/temp/blubb $ git init †: 0
Initialized empty Git repository in /Users/fkochem/temp/blubb/.git/
[fkochem@FK] ~/temp/blubb (git)-[master]$ touch meh †: 0
[fkochem@FK] ~/temp/blubb (git)-[master]$ cat > meh †: 0
this
is
my
awesome
fucking
file
^C
[fkochem@FK] ~/temp/blubb (git)-[master]$ git add meh †: 130
[fkochem@FK] ~/temp/blubb (git)-[master]$ git commit -am "initial commit" †: 0
[master (root-commit) 4d43dde] initial commit
1 file changed, 6 insertions(+)
create mode 100644 meh
[fkochem@FK] ~/temp/blubb (git)-[master]$ mv meh mah †: 0
[fkochem@FK] ~/temp/blubb (git)-[master¹]$ git status †: 0
# On branch master
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: meh
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# mah
no changes added to commit (use "git add" and/or "git commit -a")
[fkochem@FK] ~/temp/blubb (git)-[master¹]$ git add meh †: 0
[fkochem@FK] ~/temp/blubb (git)-[master¹]$ git commit -am "renamed stuff" †: 0
[master 7a0c13d] renamed stuff
1 file changed, 6 deletions(-)
delete mode 100644 meh
[fkochem@FK] ~/temp/blubb (git)-[master]$
--------------------------------
fkochem@FK] ~/temp $ mkdir blah †: 0
[fkochem@FK] ~/temp $ cd blah †: 0
[fkochem@FK] ~/temp/blah $ git init †: 0
Initialized empty Git repository in /Users/fkochem/temp/blah/.git/
[fkochem@FK] ~/temp/blah (git)-[master]$ echo bleh blah>som.txt †: 0
[fkochem@FK] ~/temp/blah (git)-[master]$ git commit -am " †: 0
[fkochem@FK] ~/temp/blah (git)-[master]$ git add som.txt †: 1
[fkochem@FK] ~/temp/blah (git)-[master]$ git commit -m" test" †: 0
[master (root-commit) 79ccb10] test
1 file changed, 1 insertion(+)
create mode 100644 som.txt
[fkochem@FK] ~/temp/blah (git)-[master]$ git mv som.txt LALA.txt †: 0
[fkochem@FK] ~/temp/blah (git)-[master²]$ git commit -m "rename shit" †: 0
[master 2f9f1d6] rename shit
1 file changed, 0 insertions(+), 0 deletions(-)
rename som.txt => LALA.txt (100%)
[fkochem@FK] ~/temp/blah (git)-[master]$ mv LALA.txt bleeeeh †: 0
[fkochem@FK] ~/temp/blah (git)-[master¹]$ git add bleeeeh
†: 0
[fkochem@FK] ~/temp/blah (git)-[master²¹]$ git commit -am "rename again" †: 1
[master 9e59b21] rename again
1 file changed, 0 insertions(+), 0 deletions(-)
rename LALA.txt => bleeeeh (100%)
[fkochem@FK] ~/temp/blah (git)-[master]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment