マイコンは一般的に容量が小さいので、gitを使って運用しているとすぐに容量オーバーしてしまいます。
そこで、.gitフォルダを別の場所に移してGit運用する方法を採用しました。色々やり方はあるらしいのですが、とりあえずシンプルな方法を試しました。
この作業は、今回はじめてやった作業なので備忘録としてまとめておきます。
社員同士のゆるーい情報交換ブログです
マイコンは一般的に容量が小さいので、gitを使って運用しているとすぐに容量オーバーしてしまいます。
そこで、.gitフォルダを別の場所に移してGit運用する方法を採用しました。色々やり方はあるらしいのですが、とりあえずシンプルな方法を試しました。
この作業は、今回はじめてやった作業なので備忘録としてまとめておきます。
よく忘れるので備忘録。gitにおいてリモートリポジトリーにアクセスする際にトークンが必要になったので以下のようなエラーメッセージが表示されることがあります。
fatal: Authentication failed for ‘https://github.com/USERNAME/REPOSITORYNAME’
“git へのpush/pull時に fatal: Authentication failed と出たときの対策” の続きを読む
Githubにメンバー (collaborator とも言います) を追加するには以下の手順で行いますが、この確認メールをクリックしても 404 エラーになるときがあります。その対策です。
1 2 3 4 5 6 7 8 9 |
$ git push -u origin master To https://github.com/YOURNAME/REPOSITORY.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/YOURNAME/REPOSITORY.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. |
Git で error: src refspec master does not match any というエラーが出る場合がります。それはわかるんですが、私の場合、別におかしなこともしてないのにこのエラーが発生しました。
1 2 3 |
$ git push -u origin master error: src refspec master does not match any error: failed to push some refs to 'https://github.com/ユーザ名/リポジトリ.git' |
“Git の error: src refspec master does not match any の 対策” の続きを読む
1 2 3 4 5 6 7 8 9 10 |
[GitHub] Deprecation Notice Hi , You recently used a password to access the repository at REPOSITORY with git using git/2.26.0.windows.1. Basic authentication using a password to Git is deprecated and will soon no longer work. Visit https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information around suggested workarounds and removal dates. Thanks, The GitHub Team |
“You recently used a password to access the repository と表示される場合の対策” の続きを読む
1 |
git --version |
と入力しても、このコマンドさえフリーズすることがあります。
1 2 |
$ git push -u origin master remote: Not Found |
と表示された場合、リモートリポジトリの設定が間違っています。
この場合の対応です。
1 2 3 4 5 6 |
$ git push fatal: The current branch sample has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin sample |
“Git The current branch sample has no upstream branch. の対策” の続きを読む
1 2 3 |
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054 error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54 error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 |