gitの------致命的な:いいえプッシュ先を設定しました。どちらのコマンドラインまたは共からのURLを指定

ローカルに自分のプロジェクトをダウンロードするgitの:

あなたが仕事に出かける場合は、ローカルプロジェクトにあなたのリモートを引くのgitの上に別のコンピュータが必要です。

 git init

 git pull https://github.com/TTyb/54qjLogin   (远程仓库url)

ダウンロードした後に変更が表示されます。このプロジェクトをプッシュする必要があります。

$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using

    git remote add <name> <url>

and then push using the remote name

    git push <name>

この場合:gitのリモート使用

这个时候第一次push需要网址:

$ git add --all
$ git commit -m "提交信息"
$ git remote add origin '远程仓库url'
$ git push -u origin 对应远程分支名



然后下一次就不用那么麻烦了,直接:

$ git add --all
$ git commit -m "信息"
$ git push

完成~~~~~~~~~~~~~~~~~

公開された163元の記事 ウォン称賛31 ビュー40000 +

おすすめ

転載: blog.csdn.net/COCOLI_BK/article/details/97921497