mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-12 23:54:27 +02:00
Update script after renaming master branch to main in repo
This commit is contained in:
parent
2df860e4dc
commit
a9b07dd95e
1 changed files with 2 additions and 2 deletions
|
@ -158,7 +158,7 @@ var gitAdd = function(done) {
|
||||||
};
|
};
|
||||||
|
|
||||||
var gitDeployMergeMain = function(done) {
|
var gitDeployMergeMain = function(done) {
|
||||||
execSync('git checkout gh-pages && git merge master -m "merge master"');
|
execSync('git checkout gh-pages && git merge main -m "merge main"');
|
||||||
done();
|
done();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ var gitDeployPushOrigin = function(done) {
|
||||||
execSync('git commit -am "rebuild for prod"; ' +
|
execSync('git commit -am "rebuild for prod"; ' +
|
||||||
'git push origin gh-pages --force && ' +
|
'git push origin gh-pages --force && ' +
|
||||||
'git branch -f trunk gh-pages && ' +
|
'git branch -f trunk gh-pages && ' +
|
||||||
'git checkout master'
|
'git checkout main'
|
||||||
);
|
);
|
||||||
done();
|
done();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue