git - Voir ce qui suit#39;s dans un stash sans l'appliquer

Mots clés : gitgit-stashgit

meilleur 4 Réponses git - Voir ce qui suit#39;s dans un stash sans l'appliquer

vote vote

91

show [<stash>]     Show the changes recorded in the stash as a diff between the stashed     state and its original parent. When no <stash> is given, shows the     latest one. By default, the command shows the diffstat, but it will     accept any format known to git diff (e.g., git stash show -p stash@{1}     to view the second most recent stash in patch form). 
git stash list 
git stash show 
git stash show -p 
git stash show -p stash@{1} 
vote vote

86

Object.keys(obj).forEach(function(key,index) {     // key: the name of the object key     // index: the ordinal position of the key within the object  }); 
vote vote

72

Object.keys(obj).forEach(e => console.log(`key=${e}  value=${obj[e]}`)); 
vote vote

65

for (const [key, value] of Object.entries(obj)) { } 
Object.entries(obj).forEach(([key, value]) => ...) 
for (const value of Object.values(obj)) { } 
Object.values(obj).forEach(value => ...) 

Questions similaires