amarjobsという名前のリポジトリを作成しました。
現在、ファイルはありません。
このリポジトリに作業ファイルをアップロードしたいと思います。
私はいくつかのステップを実行しました:
git init
git remote add origin url
git pull
git push origin master
しかし、それはエラーをスローします。私はgitの初心者です。
検索しましたが、問題に対する満足のいく答えが得られません。
誰かが私の問題を解決できますか?
エラー:
ありがとう。
持っていないリモートブランチに変更があるため、プッシュできません。プッシュ
するgit pull
前に実行するだけで、この問題が修正されます。
これらの手順に従うと、コードをgithubにプッシュできるようになります。
# Create a git repository in the folder
git init
# add the remote url
git remote add origin [email protected]:chonchol/amajobs.git
# add your code to the repository
git add .
# commit your code
git commit -m "Message..."
# now once you have your code committed updated your branch with the remote code
git pull
# now once you have the commit message of the merge - commit and push
git push origin master
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加