Skip to content

Commit f6146ae

Browse files
committed
When push is rejected suggest pulling first
1 parent 20ec83a commit f6146ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/controlbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ function(_yargs, d3, demos) {
800800
// push to an existing branch on the remote
801801
if (remoteCommit && remote.branches.indexOf(remoteRef) > -1) {
802802
if (!local.isAncestorOf(remoteCommit.id, localCommit.id) && !opt.f) {
803-
throw new Error('Push rejected. Non fast-forward.');
803+
throw new Error('Push rejected. Non fast-forward. Try pulling first');
804804
}
805805

806806
isCommonCommit = localCommit.id === remoteCommit.id;

0 commit comments

Comments
 (0)