致命的:プッシュ先が構成されていません。コマンドラインからURLを指定する



Fatal No Configured Push Destination



最近、流行のため、自宅で仕事をする必要があります。私の古いコンピューターは、事務作業に必要なさまざまなツールをダウンロードしました。 gitの使用でいくつかの問題が発生しました。プロセスを記録します。

git init git clone 'The git address of the current project'

次に、プロンプトに従い、使用名とパスワードを入力して、続行します



git add . git commit -m '' git push

常にOK、プッシュ時にエラーが報告されました
画像

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 remote add origin 'http://git.....' git push -u origin master

自分で作ったプロジェクトがマスターなので、最後の文は リモートブランチ名 状況に応じてマスターを書きましたが
画像
それでおしまい!