Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop-postgres into develop #3004

Closed
im-vedant opened this issue Dec 28, 2024 · 2 comments
Closed

Merge develop-postgres into develop #3004

im-vedant opened this issue Dec 28, 2024 · 2 comments
Assignees

Comments

@im-vedant
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Merge develop-postgres into develop

Potential internship candidates

Please read this if you are planning to apply for a Palisadoes Foundation internship

Copy link

Congratulations on making your first Issue! 🎊 If you haven't already, check out our Contributing Guidelines and Issue Reporting Guidelines to ensure that you are following our guidelines for contributing and making issues.

@palisadoes
Copy link
Contributor

Steps - Part 1

cd /path/to/local/repo

git checkout develop
git add --all
git commit --no-verify -am "Saving before reset date +'%D %T'"
git fetch upstream
git fetch origin
git reset upstream/develop --hard
git branch --set-upstream-to=origin/develop develop
git push origin --force

git checkout develop-postgres
git add --all
git commit --no-verify -am "Saving before reset date +'%D %T'"
git fetch upstream
git fetch origin
git reset upstream/develop-postgres --hard
git branch --set-upstream-to=origin/develop-postgres develop-postgres
git push origin --force

git checkout develop-postgres
tar --exclude='./.git' --exclude='./node_modules' -czvf /tmp/"$(basename $PWD)".tgz .
cd ~/code/GitHub/PalisadoesFoundation
cp -rp repo repo.develop
cd repo.develop
git checkout develop

Steps - Part 2

Delete all files and subdirectories in the directory. Make sure the only remaining directory is .git

Then:

git checkout develop
git branch --set-upstream-to=origin/develop develop
git branch --set-upstream-to=origin/develop-postgres develop-postgres

rm -rf *
git add .
git add --all
git commit --no-verify -am "date +"%Y%m%d%H%M%S" Deleted all files in the develop branch in anticipation of merging develop-postgres into develop cleanly"
git push origin --force
tar -xvzf /tmp/repo.tgz
git add .
git add --all
git commit --no-verify -am "date +"%Y%m%d%H%M%S" Merge develop-postgres into develop"
git push origin --force

git branch new-develop
git checkout new-develop
git branch --set-upstream-to=origin/new-develop new-develop
git push origin --force

Finally

Open a PR against develop-postgres using new-develop as the source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants