Git
"github.copilot.chat.commitMessageGeneration.instructions": [ { "text": "Semantic Commit MessageおよびCommit Message Guidelineに従い、日本語のコミットメッセージを1行で作成してください。" } ]
以下のようなシェルスクリプトを cron で定期的に実行すれば良い。 #!/bin/bash export HOME=/home/physics export PATH=/usr/bin:/bin git config --global user.email "physics@physics" git config --global user.name "physics" cd /home/physics/target…
Githubで要ログインなリポジトリにアクセスすると以下のGitHubへのログイン画面が出てくる。 ここで「Sign in with your browser」とやってもログインはできるものの、その度にWindowsに資格情報が追加されてしまいおすすめできない。ちなみにWindowsの資格…
一時的にファイルの変更を無視するためのコマンドは git update-index --skip-worktree [ファイル名] 似たコマンドで --assume-unchanged がある。 qiita.com --skip-worktree は変更が 「ある」 ものとして無視するが、--assume-unchanged は変更が 「ない…
ディレクトリを無視 /build/ と書くと、それ以降の全ての除外(!)は効かなくなるので注意せよ。 ディレクトリ内の一部のファイルだけ管理して他は無視するとき、さらに深いディレクトリにある一部のファイルだけ管理して他は無視するときの .gitignoreの記述…
error: could not lock config file C:/Windows/%HOMEDRIVE%%HOMEPATH%/.gitconfig: No such file or directory %userprofile%.gitconfig を削除するか、Git for Windowsを再インストールすると治る。なんでだろう。 Visual Studio 2019 16.4.5
Visual StudioにバインドされたGitで、変更したファイルを比較しようとした時に 2つのファイルのコンテンツは異なっています と出るのはなぜ?
git reset --soft "HEAD^" cm3.hateblo.jp 知らんがな。
新しいサブモジュールを追加。 root_macros フォルダに リポジトリ root_macros.gitを追加する。 git submodule add https://gitlab.com/yoshimoto/root_macros.git root_macros リモートが更新されたら取り込む git submodule foreach git pull origin mast…