Skip to content

Commit f682322

Browse files
committed
Update normalize.css necolas#905
1 parent e4f7149 commit f682322

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

MergePullRequestFromBaseRepo.bat

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
@echo off
2+
3+
set /p original_repo_url="Enter the URL of the original repository: "
4+
set /p pull_request_number="Enter the pull request number: "
5+
6+
REM Step 1: Ensure your fork is up to date
7+
git remote add upstream "%original_repo_url%"
8+
git fetch upstream
9+
git checkout main
10+
git merge upstream/main
11+
12+
REM Step 2: Apply the changes locally
13+
git checkout main
14+
git pull origin main
15+
git checkout -b pr-branch
16+
git pull "%original_repo_url%" "pull/%pull_request_number%/head"
17+
18+
REM Step 4: Resolve conflicts (if any)
19+
REM Handle conflicts manually in the code editor
20+
21+
REM Step 5: Commit the changes
22+
set /p commit_message="Enter a commit message for the merge: "
23+
git add .
24+
git commit -m "%commit_message%"
25+
26+
REM Step 6: Push the changes to your fork
27+
git push origin pr-branch
28+
29+
REM Step 7: Create a pull request in your fork
30+
echo.
31+
echo To complete the process, go to your fork's repository on GitHub
32+
echo and create a pull request for the 'pr-branch' branch.

0 commit comments

Comments
 (0)