This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Javascript console | |
| ObjectWrapper {source: jQuery.fn.init[4], root: function, get: function, each: function, watch: function…} | |
| ├──source: jQuery.fn.init[4] | |
| │ ├──0: div.castle | |
| │ ├──1: div.castle | |
| │ ├──2: div.castle | |
| │ ├──3: div.castle | |
| ├──context: document | |
| ├──length: 4 | |
| ├──prevObject: jQuery.fn.init[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lazy($(".castle")).map(mapFunc) | |
| .reduce(reduceFunc) | |
| .each(eachFunc); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="castle"></div> | |
| <div class="castle"></div> | |
| <div class="castle"></div> | |
| <div class="castle"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Shell | |
| > git reset --hard HEAD~1 | |
| > git status | |
| On branch master Untracked files: | |
| (use "git add <file>..." to include in what will be committed) | |
| stagingMappe/ | |
| nothing added to commit but untracked files present | |
| (use "git add" to track) | |
| > tree | |
| ├── stagingMappe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Shell | |
| > git reset --mixed HEAD~1 | |
| > git status | |
| On branch master Untracked files: | |
| (use "git add <file>..." to include in what will be committed) | |
| mappe/ | |
| stagingMappe/ | |
| > tree | |
| ├── mappe | |
| │ └── mappeFil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Shell | |
| > git reset --soft HEAD~1 | |
| > git status | |
| On branch master Changes to be committed: | |
| (use "git reset HEAD <file>..." to unstage) | |
| new file: | |
| mappe/mappeFil | |
| new file: | |
| stagingMappe/trackedFil | |
| Untracked files: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Shell | |
| > git log | |
| #commit B | |
| commit 81c07a34e51242c9c95b92a45c4689bad59ea389 | |
| Date: Wed Mar 26 15:42:46 2014 +0100 | |
| add the folder 'mappe' and file 'mappeFile' in it | |
| #commit A | |
| commit 9a60670ed687bce1dd03f2abfff905ce2998798a | |
| Date: Wed Mar 26 10:46:42 2014 +0100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Shell | |
| > git status | |
| On branch master Changes to be committed: | |
| (use "git reset HEAD <file>..." to unstage) new file: | |
| stagingMappe/trackedFil Untracked files: | |
| (use "git add <file>..." to include in what will be committed) | |
| stagingMappe/untrackedFil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Shell | |
| > tree | |
| ├── mappe | |
| │ └── mappeFil | |
| ├── stagingMappe | |
| │ ├── trackedFil | |
| │ └── untrackedFil | |
| └── text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #some modification to staging area | |
| > mkdir stagingMappe | |
| > touch stagingMappe/trackedFil | |
| > touch stagingMappe/untrackedFil | |
| > echo "aaaa" | |
| > stagingMappe/trackedFil | |
| > echo "bbbb" | |
| > stagingMappe/untrackedFil | |
| > git add stagingMappe/trackedFil |