Skip to content

Commit 90be9a5

Browse files
committed
pr merging instructions
1 parent 67522d2 commit 90be9a5

File tree

2 files changed

+37
-13
lines changed

2 files changed

+37
-13
lines changed

README.md

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,38 @@ npm start
5454
## :outbox_tray: Deployment Instructions
5555
*[For the PR reviewer only]*
5656
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.
5959
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:
6161
```
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
6564
```
6665
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.
6889
6990
---
7091
Design based on [@soumyajit4419/Porfolio](https://github.com/soumyajit4419/Portfolio) and [BrainHack Western](https://brainhackwestern.github.io/).

src/components/Projects/projects.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,21 @@
7070
border-radius: 10px !important;
7171
max-height: 300px !important;
7272
object-fit: contain !important;
73-
background-color: rgba(15, 6, 33, 0.9) !important;
73+
/* background-color: rgba(15, 6, 33, 0.9) !important; */
7474
}
7575

7676
.project-details-btn.btn-primary {
77-
display: inline-flex !important; /* forces inline-flex override */
78-
align-items: center !important; /* vertical centering */
79-
justify-content: center !important; /* horizontal centering (if needed) */
80-
77+
display: inline-flex !important;
78+
/* forces inline-flex override */
79+
align-items: center !important;
80+
/* vertical centering */
81+
justify-content: center !important;
82+
/* horizontal centering (if needed) */
83+
8184
/* optional tweaks if needed */
8285
vertical-align: middle !important;
8386
/* line-height: 1; <-- might also help if text is off-center */
84-
}
87+
}
8588

8689

8790

0 commit comments

Comments
 (0)