2013-07-24 77 views
-2

我是git和stackoverflow的新手。
我在更新git上的.java文件時遇到問題。必須缺少一些小事。 你能幫忙嗎?輸出低於?提交到git的java文件更新

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 
+0

你COMMITED文件,添加遠程'origin'。現在你應該發出'git push'命令。 – gustavohenke

+0

我其實沒有看到這裏的錯誤 - 它看起來像你只需要推動下面建議的文件。如果推送失敗,只需發佈​​上面的輸出,我們可以繼續查看它。 – jayunit100

回答