You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-7Lines changed: 28 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,17 +54,38 @@ npm start
54
54
## :outbox_tray: Deployment Instructions
55
55
*[For the PR reviewer only]*
56
56
57
-
Pushing updates to the website from the main branch is a 1-step process:
58
-
1. Push ***source code*** to the main branch:
57
+
To merge changes into the main branch from pull requests from other branch:
58
+
1. ***Pull*** the most recent main branch.
59
59
60
-
Run the following commands on the terminal to push updates to the main branch
60
+
Run the following commands on the terminal to pull remote main to the local main:
61
61
```
62
-
git add <files>
63
-
git commit -m "Commit message"
64
-
git push -f --set-upstream origin main
62
+
git checkout main
63
+
git pull
65
64
```
66
65
67
-
Changes pushed to the main branch will result in an automated deployment action that will update the website.
66
+
2. ***Rebase*** the branch to this most recent version of main
67
+
68
+
Run the following commands on the terminal to rebase the branch to the most recent main
69
+
```
70
+
git checkout <branch-name>
71
+
git fetch origin
72
+
git rebase origin/main
73
+
```
74
+
75
+
If there are any merge conflicts rising during the rebase, resolve them locally and push the rebased branch with `git push`.
76
+
77
+
3. ***Preview*** the website locally:
78
+
79
+
On the rebased branch, check everything works as expected by running the website locally:
80
+
```
81
+
npm run start
82
+
```
83
+
84
+
4. ***Merge*** on Github:
85
+
86
+
Go to the pull request on the Github website. The merge automatically button should be enabled since the branch has already been rebased to main. Click merge.
87
+
88
+
Merging the PR modifies the main branch. Changes pushed to the main branch will result in an automated deployment action that will update the website.
68
89
69
90
---
70
91
Design based on [@soumyajit4419/Porfolio](https://github.com/soumyajit4419/Portfolio) and [BrainHack Western](https://brainhackwestern.github.io/).
0 commit comments