git
一番最初のコミットと2番目をまとめようと思って git rebase -i HEAD~2 になった。 Gitでfatal: invalid upstream ‘HEAD~が出る原因とは? | IT資格マニアのエンジニア技術ブログ×英語 初回のコミットをgit rebaseで修正する方法 - hnwの日記 git rebase -i…
xengineer.hatenablog.com
Swift
月初から当日までのコミット数ランキングを表示するコマンド - Qiita https://qiita.com/hikaruworld@github/items/ba29b85a23e9a3ee94b7 ~/.gitconfigに以下を登録。 [alias] ranking = !git shortlog -sn --no-merges --after='date +%Y/%m/01' --before='…
gitのカレントブランチ名 git symbolic-ref --short HEAD なのね。 backlogで今のgitブランチのページを開く 前提としてfeature/ページの名前 前提。 /usr/local/bin/openbl をいじる now=`git symbolic-ref --short HEAD` now=${now##*/} echo $now open ht…
https://stackoverflow.com/questions/3497123/run-git-pull-over-all-subdirectories ls | xargs -I{} git -C {} pull パラレル版 ls | xargs -P10 -I{} git -C {} pull
コミットしたことをやめて git reset --soft HEAD^ この時点でaddしたことは残ってる。 さらに、tigでaddされた状態はずせばワーキングにできる
こうなった git push origin master --force Counting objects: 15, done. Delta compression using up to 4 threads. Compressing objects: 100% (15/15), done. Writing objects: 100% (15/15), 2.18 KiB | 1.09 MiB/s, done. Total 15 (delta 8), reused …
sshはssh-keygen -t rsa -C "自分のメールアドレス" -b 4096 pbcopy < ~/.ssh/gitlab_rsa.pub これをGitLab のサイトに貼り付ける。 Host gitlab.com User git Port 22 HostName gitlab.com IdentityFile ~/.ssh/gitlab_rsa TCPKeepAlive yes IdentitiesOnly…
長いけどこんな感じ git diff-tree --no-commit-id --name-only -r 71dc1bfd0