One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
// https://github.com/lsmith/addBusinessDays/blob/master/addBusinessDays.js | |
// var d = new Date(); | |
// addBusinessDays(d, numberOfDays); | |
function addBusinessDays(d,n) { | |
d = new Date(d.getTime()); | |
var day = d.getDay(); | |
d.setDate(d.getDate() + n + (day === 6 ? 2 : +!day) + (Math.floor((n - 1 + (day % 6 || 1)) / 5) * 2)); | |
return d; | |
} |
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git |