0
1.フォルダを作成して初期化してリポジトリにして、そこに2つのフォルダを追加します。私はそれらを一度一緒にコミットします。それから私は、リモートリポジトリを追加しますが、私はそれをプッシュし始めたときに、エラーが出てくる:gitが本の通りですがエラーが発生しました
git init
git add 2048-personal
git add canvas-time-counter
git commit
git remote add origin [email protected]:CharlesLN/front_end.git
git push -u origin master
その後、エラーが出てくる:ここに私が作ったコードと以下のエラーがある
To [email protected]:CharlesLN/front_end.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to '[email protected]:CharlesLN/front_end.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
その後、私はgit pull remote
をキー
warning: no common commits
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 3
Unpacking objects: 100% (3/3), done.
From github.com:CharlesLN/front_end
*[new branch] master -> origin/master
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> master
:
私は、その後の情報をgit pull
をキー
fatal: 'remote' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
その後git status
間違っていると誰が私に問題を伝えることができる場所だから、私は知らないのですか? ありがとうございました!
私は3回以上試みましたが、それはまだ間違っています!私に助けをしてください、ありがとう!
しかし、このマージが必要な理由を説明するコミットメッセージを入力するウィンドウが表示されます...しかし、私はcommondウィンドウに戻る方法を知らない –
メッセージを書いて保存してください編集者。 gitでどのテキストエディタを使用していますか? – Linkan
vim私は思うが、重要なことは私がそれを押すことができないと思う。 –