blob: 17422add03c586f48e3b89ad5e6e88743a206b4e [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= no new changes
Edwin Kempin497ac4a2010-12-28 12:55:22 +01002
3With this error message Gerrit rejects to push a commit if the pushed
Bruce Zucd6572d2014-01-21 11:11:42 +08004commit was already successfully pushed to Gerrit in project scope.
5In this case there is no new change and consequently there is nothing
6for Gerrit to do.
Edwin Kempin497ac4a2010-12-28 12:55:22 +01007
8If your push is failing with this error message, you normally
9don't have to do anything since the commit was already successfully
10pushed. Still this error message may sometimes come as a surprise if
11you expected a new commit to be pushed. In this case you should
12verify that:
Edwin Kempinddfc41a2011-05-06 10:32:05 +020013
14. your changes were successfully committed locally (otherwise there
15 is no new commit which can be pushed)
16. you are pushing the correct commit (e.g. if you are pushing HEAD
17 make sure you have locally checked out the correct branch)
Edwin Kempin497ac4a2010-12-28 12:55:22 +010018
19If you are sure you are pushing the correct commit and you are still
20getting the "no new changes" error unexpectedly you can take the
21commit ID and search for the corresponding change in Gerrit. To do
David Pursehousea1d633b2014-05-02 17:21:02 +090022this simply paste the commit ID in the Gerrit Web UI into the search
Edwin Kempin497ac4a2010-12-28 12:55:22 +010023field. Details about how to search in Gerrit are explained link:user-search.html[here].
24
25Please note that each commit can really be pushed only once. This
26means:
Edwin Kempinddfc41a2011-05-06 10:32:05 +020027
28. you cannot push a commit again even if the change for which the
29 commit was pushed before was abandoned (but you may restore the
30 abandoned change)
31. you cannot reset a change to an old patch set by pushing the old
32 commit for this change again
33. if a commit was pushed to one branch you cannot push this commit
Bruce Zucd6572d2014-01-21 11:11:42 +080034 to another branch in project scope.
Edwin Kempinddfc41a2011-05-06 10:32:05 +020035. if a commit was pushed directly to a branch (without going through
36 code review) you cannot push this commit once again for code
37 review (please note that in this case searching by the commit ID
David Pursehousea1d633b2014-05-02 17:21:02 +090038 in the Gerrit Web UI will not find any change)
Edwin Kempin497ac4a2010-12-28 12:55:22 +010039
40If you need to re-push a commit you may rewrite this commit by
41link:http://www.kernel.org/pub/software/scm/git/docs/git-commit.html[amending] it or doing an interactive link:http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html[git rebase]. By rewriting the
Bruce Zucd6572d2014-01-21 11:11:42 +080042commit you actually create a new commit (with a new commit ID in
David Pursehouse905cb4e2018-01-26 08:49:52 +090043project scope) which can then be pushed to Gerrit.
44
45If you are pushing the new change to the same destination branch as
46the old commit (case 1 above), you also need to replace it with a new
47Change-Id, otherwise the push will fail with another error message.
Edwin Kempin497ac4a2010-12-28 12:55:22 +010048
Kenny Ho5c309a82015-10-02 10:45:02 -040049== Fast-forward merges
50
51You will also encounter this error if you did a Fast-forward merge
52and try to push the result. A workaround is to use the
53link:user-upload.html#base[Selecting Merge Base]
54feature or enable the
55link:project-configuration.html#_use_target_branch_when_determining_new_changes_to_open[
56Use target branch when determining new changes to open]
57configuration.
Edwin Kempin497ac4a2010-12-28 12:55:22 +010058
59GERRIT
60------
61Part of link:error-messages.html[Gerrit Error Messages]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070062
63SEARCHBOX
64---------