Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9221015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:28:59+00:00 2026-06-18T03:28:59+00:00

So, I try to patch my current branch using command patch -p RETURN quote-patch.txt

  • 0

So, I try to patch my current branch using command

patch -p RETURN quote-patch.txt

However, I dont know what number should I put after -p option.I tried to put several number (0,1,2,3,4), but it return this error:

patching file RETURN
Hunk #1 FAILED at 74.
Hunk #2 FAILED at 84.
Hunk #3 FAILED at 95.
Hunk #4 FAILED at 107.
Hunk #5 FAILED at 139.
Hunk #6 FAILED at 187.
6 out of 6 hunks FAILED -- saving rejects to file RETURN.rej

any idea? thx

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:29:00+00:00Added an answer on June 18, 2026 at 3:29 am

    Your patch does not apply to your current working set.

    Without more information, I cannot say why that is the case. Perhaps you changed RETURN locally before attempting the patch application. As the message suggests, try taking a look in RETURN.rej (and RETURN itself) to fix up the fallout.

    When using the patch command-line utility, you should use a -p number which causes the paths in the patch to match up with those in your working set: If the patch header says +++ lib/foo/RETURN, and your current working directory has foo/RETURN in it, that would be a case for -p1.

    However, since you’ve tagged this question “git”, I’m going to assume you’re in a git repository. When using git, you shouldn’t use the patch tool: instead, either push+pull changes naturally, or use git format-patch and git am to send and receive sets of changes. That will preserve permissions, commit messages, authorship information, and so on. All this extra metadata would be lost if you use a straight diff and then apply the change with patch.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have my own templatetag: @register.inclusion_tag('path_to_module.html', takes_context=True) def getmodule(context, token): try: return slow_function(params) except
I have an issue when I try to rebase an upstream branch into a
When I try to compile a simple source code in c++ using jgrasp i
Creating a patch utility that will update my current website with my patch. when
I'm trying to parse an URL in order to obtain the current branch or
I'm using an existing database made by a third party with sqlalchemy. However, I'm
I have the following code to launch a file : try { path =
Whenever I try to use the python interpreter on windows, C:\path>pythonw.exe cubes.py <blank line>
I am new to Capybara. I try to use visit root_path and then check
Try this code - import java.io.StringReader; public class StringReaderTest { public static void main(String[]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.