by shigemk2

当面は技術的なことしか書かない

Git

fish shell dateの組み合わせメモ

ドルマークが必要じゃなくなるだけ git commit -m (date -v-1d +%Y/%m/%d) git commit -m "(date +%Y/%m/%d)"

git checkout ours theirs

Git

コンフリクトしてる時の選択肢 git checkout コマンドには --ours や --theirs オプションを指定することもできます。これを使うと、何かをマージする代わりに、どちらか一方を選択して簡単にチェックアウトできます。 これは、バイナリデータのコンフリクト…

git stash save/push

Git

git stash saveはdeprecatedになっていた メッセージをつけてpushしろってこと This option is deprecated in favour of git stash push. It differs from "stash push" in that it cannot take pathspec. Instead, all non-option arguments are concatenat…

git logのdate range

Git

since before until afterを覚えていればいい 指定日を含む git log --after 2024-12-23 --before 2024-12-25

git branch show-current

Git

今のブランチ名を表示する --show-current Print the name of the current branch. In detached HEAD state, nothing is printed. これを応用して今のブランチでgit pullする(fish shell) git pull origin (git branch --show-current) git-scm.com

git 2.45.1

Git

脆弱性修正 https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.45.1.txt

Git 2.45.0

Git

git init --ref-format=reftable によるrefsフレームワークへのreftableコード統合 git checkout -p で "@" を "HEAD" の同義語として学習 vimdiffのバリアントがmergetoolのレイアウト設定を尊重 git reflog list で既知のreflogを列挙 submoduleでのmerge…

git 2.43

Git

git repackの新機能 リポジトリのパックを再編成するために使用。 全ての解凍オブジェクトを一つのパックに結合し、解凍コピーを削除(git repack -d)。 オブジェクトの数を幾何学的に増加させるパックの再パック(git repack --geometric=<n>)。 到達不能オブジ</n>…

git branchで現在のブランチを表示

Git

Print the name of the current branch. In detached HEAD state, nothing is printed. git-scm.com

Git 2.42

Git

ビットマップを使用した高速なオブジェクトトラバーサル: Gitは、特に大規模なリポジトリで、ビットマップを使用して到達可能性クエリの答えを計算することがよくあります。 for-each-refでの参照のパターンによる除外: Git 2.42では、参照をより効率的に除…

git branch --merged

Git

--merged [] Only list branches whose tips are reachable from the specified commit (HEAD if not specified). Implies --list. 特定commit(default HEAD)に到達できるbranchのリストアップなので、それをまとめると「マージされた」になる git-scm.com

Git 2.40.1

Git

このリリースでは、v2.30.9、v2.31.8、v2.32.7、v2.33.8、v2.34.8、v2.35.8、v2.36.6、v2.37.7、v2.38.5、v2.39.3に現れる修正がマージされている セキュリティ問題CVE-2023-25652、CVE-2023-25815、CVE-2023-29007に対処するため 詳細は、これらのバージョ…

git 2.40.0

Git

Highlights from Git 2.40 | The GitHub Blog Git 2.40 · git/git@73876f4 · GitHub git jumpのEmacsサポート

Git 2.38.2

Git

github.com github.com

Git 2.39.0 rc0

Git

github.com

git 2.38.0

Git

git remote show git push git grep git merge-tree git mv git rebase -i git ls-files git cat-file git merge git rm git rev-list --disk-usage scalar git rev-list --ancestry-path=C A..B git clone git range-diff git format-patch https://raw.git…

Git 2.36.1

Git

github.com

xmlto does not validate xmltoのやつ

Git

MacOSX 11.5.2でGitをソースビルドしようとしてmake all doc infoすると以下エラーが起きる。 xmlto does not validate xmlto: Fix document syntax or use --skip-validation option I/O error : Attempt to load network entity dtd warning: failed to lo…

Gitソースビルド

Git

ここら辺を参考。いまいち最新になっていない感はあるけどガチのGit開発者じゃ無い限りはソースからビルドしないでしょうとは思う。 git-scm.com mirrors.edge.kernel.org

git mvで不思議なこと

Git

Mac OSX BigSur 11.5.2 git version 2.31.1 git mv AAA.txt aaa.txt 上実行すると以下エラーが出てきた fatal: renaming 'xxxxxxx' failed: Invalid argument stackoverflow.com ここらへんを参考にして以下実行すればうまくいったと思った。 git mv AAA.txt…

オレオレgit-log

(Mas OSX限定) git log --oneline --pretty=format:"- [%ad]: %s" --date-order --no-merges --date=iso-local --after='`date "+%Y-%m-%d 00:00:00" --date=yesterday`' --before='`date "+%Y-%m-%d 00:00:00"`' | pbcopy

自分用git log

Git

昨日のコミットログ マージコミット抜き git log --oneline --pretty=format:"- [%ad]: %s" --date-order --no-merges --date=iso-local --after='`date "+%Y-%m-%d 00:00:00" --date=yesterday`' --before='`date "+%Y-%m-%d 00:00:00"`'

git 2021-05-20

Git

[2021-05-20 08:43:22 +0900]: A handful more topics before -rc1

昨日のコミットログだけを見るワンライナー

git logのbefore/afterはcommit dateを見るものであって、author dateを見るものではない。そしてgit logに出てくる日付はauthor dateなので、author dateとcommit dateが大幅に違ってたらものすごくめんくらう commit dateとauthor dateを同時に見たいならp…

git diff --ignore-all-space

Git

Ignore whitespace when comparing lines. This ignores differences even if one line has whitespace where the other line has none. wと同等。 git-scm.com

Git trackされたファイル一覧

Git

応用力がない。。。 $ git ls-tree -r master --name-only stackoverflow.com www.shigemk2.com git-scm.com

git log 今日だけ

Git

git log --after="yesterday" git log --since="yesterday" stackoverflow.com Commit Limitingあたりを読んでもいまいちよくわからないという。 git-scm.com img.atwikiimg.com

git 2.31.1

Git

git/2.31.1.txt at master · git/git · GitHub fsmonitorあたりかなあ 特に大きな変更はないかも

git statusのファイルだけ表示みたいなやつ

stackoverflow.com $ git ls-files -m git-ls-files - Show information about files in the index and the working tree git-scm.com modifiedだからmだね

Git 2.30.2

Git

git/2.30.2.txt at master · git/git · GitHub This release merges up the fixes that appear in v2.17.6, v2.18.5, v2.19.6, v2.20.5, v2.21.4, v2.22.5, v2.23.4, v2.24.4, v2.25.5, v2.26.3, v2.27.1, v2.28.1 and v2.29.3 to address the security issu…