willdot / uGit

A git command line tool written in Go. Will make running repetitive commands easier.
GNU General Public License v3.0
0 stars 0 forks source link

When pushing, no error if pull is required first #21

Open willdot opened 5 years ago

willdot commented 5 years ago

If when doing a git push, and there is an error because the head doesn't match and a git pull is required first, no error is shown so it looks like it successfully pushed.

willdot commented 5 years ago

git push To https://github.com/willdot/uGit.git ! [rejected] master -> master (fetch first) error: failed to push some refs to 'https://github.com/willdot/uGit.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.