-3

I am new to git and stackoverflow.
I am having trouble updating my .java file on git. Must be missing something minor. Can you help. Output is below?

bash-3.2$ git add bwt.java
bash-3.2$ git commit -m "new commit"
[master (root-commit) fc94e26] new commit
 1 file changed, 368 insertions(+)
 create mode 100755 src/bwtx/bwt.java
bash-3.2$ git remote add origin
usage: git remote add [<options>] <name> <url>

    -f, --fetch           fetch the remote branches
    --tags                import all tags and associated objects when fetching
                          or do not fetch any tag at all (--no-tags)
    -t, --track <branch>  branch(es) to track
    -m, --master <branch>
                          master branch
    --mirror[=<push|fetch>]
                          set up remote as a mirror to push to or fetch from

bash-3.2$ git remote add origin https://github.com/MartinRSchiller/BWT.git
bash-3.2$ git remote add origin 
usage: git remote add [<options>] <name> <url>

    -f, --fetch           fetch the remote branches
    --tags                import all tags and associated objects when fetching
                          or do not fetch any tag at all (--no-tags)
    -t, --track <branch>  branch(es) to track
    -m, --master <branch>
                          master branch
    --mirror[=<push|fetch>]
                          set up remote as a mirror to push to or fetch from
4

1 回答 1

3

看起来您已成功添加远程源。你应该发出:

git push -u origin master

我建议查看此 github 指南中的步骤 1、2 和 3。

于 2013-07-24T20:33:46.777 回答