Skip to content

Instantly share code, notes, and snippets.

@cmcculloh
Created January 9, 2012 22:55
Show Gist options
  • Save cmcculloh/1585461 to your computer and use it in GitHub Desktop.
Save cmcculloh/1585461 to your computer and use it in GitHub Desktop.
weird push behaviour
$ commit "got the array passing to work (finally, OMG this was ridiculous)" -a
####################################################################################
Committing changes to branch: `menu`
####################################################################################
Checking status...
------------------------------------------------------------------------------------
$ git status
# On branch menu
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: menu.sh
#
no changes added to commit (use "git add" and/or "git commit -a")
------------------------------------------------------------------------------------
Committing and displaying branch changes...
------------------------------------------------------------------------------------
$ git commit -q -m "(menu) got the array passing to work (finally, OMG this was ridiculous)" -a
$ git diff-tree --stat HEAD
1d61e9241ef7eebf103fead27f6f57aa02f68db7
utils/menu.sh | 24 +++++++++++++++++++++---
1 files changed, 21 insertions(+), 3 deletions(-)
------------------------------------------------------------------------------------
Checking status...
------------------------------------------------------------------------------------
$ git status
# On branch menu
nothing to commit (working directory clean)
------------------------------------------------------------------------------------
Would you like to push? y (n)
y
Now pushing to: ------------------------------------------------------------------------------------
0: origin
1: upstream
------------------------------------------------------------------------------------
Choose a remote (or just hit enter to abort):
origin
------------------------------------------------------------------------------------
$ git push ------------------------------------------------------------------------------------
0: origin
1: upstream
------------------------------------------------------------------------------------
Choose a remote (or just hit enter to abort):
origin menu
error: unknown option `----------------------------------------------------------------------------------'
usage: git push [<options>] [<repository> [<refspec>...]]
-v, --verbose be more verbose
-q, --quiet be more quiet
--repo <repository> repository
--all push all refs
--mirror mirror all refs
--delete delete refs
--tags push tags (can't be used with --all or --mirror)
-n, --dry-run dry run
--porcelain machine-readable output
-f, --force force updates
--recurse-submodules[=<check>]
controls recursive pushing of submodules
--thin use thin pack
--receive-pack <receive-pack>
receive pack program
--exec <receive-pack>
receive pack program
-u, --set-upstream set upstream for git pull/status
--progress force progress reporting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment