Sometimes you want to ignore certain files when you run git diff
, but you still want to check them
in, which means you can't capitalize on .gitignore
.
This guide is here to help.
How to set it up?
/** | |
* Set the transaction status of all items by the current user to the given status. | |
*/ | |
async function setTransaction(transaction) { | |
const userId = await fetch('https://inventaire.io/api/user', { credentials: 'include' }) | |
.then(response => response.json()) | |
.then(json => json._id); | |
const items = await fetch(`https://inventaire.io/api/items?action=by-users&users=${userId}`) | |
.then(response => response.json()) | |
.then(json => json.items); |
Situation: Some commit (on master, but not necessarily head of master) has broken things, but it's a big commit and it's not clear what part broke things.
% git checkout master
% git checkout -b bisect-branch
% git revert <offending commit>
(test here to make sure reverting fixed your problem)
% git bisect start