$ git status # On branch master # # Initial commit # # Untracked files: # (use "git add <file>..." to include in what will be committed) # #! README nothing added to commit but untracked files present (use "git add" to track) Wednesday, 23 February 2011
status # On branch master # # Initial commit # # Changes to be committed: # (use "git rm --cached <file>..." to unstage) # #! new file: README # Wednesday, 23 February 2011
Tobolski <[email protected]> Date: Sun May 2 15:51:53 2010 +0200 Next one commit 595ae522a0b115535f166813e31538b4f7119013 Author: Tymon Tobolski <[email protected]> Date: Sun May 2 15:51:40 2010 +0200 Second commit commit 28dc8e941ac55657cc633575967a7e72dd3ea898 Author: Tymon Tobolski <[email protected]> Date: Sun May 2 15:23:58 2010 +0200 First commit Wednesday, 23 February 2011
Second commit SHA: 595ae522a0b115535f166813e31538b4f7119013 PARENT: 28dc8e941ac55657cc633575967a7e72dd3ea898 MESSAGE: Next one SHA: 66c61ef16075eccbfd4f015e3e12c6c5f87c29d0 PARENT: 595ae522a0b115535f166813e31538b4f7119013 Wednesday, 23 February 2011
~/ilabs $ echo "666" >> README ~/ilabs $ 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") Wednesday, 23 February 2011
git stash Saved working directory and index state WIP on master: 992f518 Merge branch 'foo' HEAD is now at 992f518 Merge branch 'foo' Wednesday, 23 February 2011
git stash Saved working directory and index state WIP on master: 992f518 Merge branch 'foo' HEAD is now at 992f518 Merge branch 'foo' ~/ilabs $ git status # On branch master nothing to commit (working directory clean) Wednesday, 23 February 2011
git stash Saved working directory and index state WIP on master: 992f518 Merge branch 'foo' HEAD is now at 992f518 Merge branch 'foo' ~/ilabs $ git status # On branch master nothing to commit (working directory clean) ~/ilabs $ cat README asd Wednesday, 23 February 2011
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") Wednesday, 23 February 2011
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") ~/ilabs $ cat README asd 666 Wednesday, 23 February 2011