- Home
- Tags
- Git
January 1, 2020
Git Basic # 実用的なコマンド # 頻繁に使うコマンド # $ git branch -a $ git checkout -b sample_branch_name # Edit source code $ git status $ git add . $ git commit -m "message" $ git push origin sample_branch_name git tag sample_tag_name git tag -n git push origin sample_tag_name 指定したフォーマットでコミット・ログを表示 # $ git log --graph --date=iso --pretty=format:"[%ad] %h %an : %s" 特定の注釈を含むコミットを検索 # $ git log --oneline --grep "<pattern>" コミット間の変更ファイル一覧を表示 # $ git diff --stat <Commit A> <Commit B> ファイル名のみ表示する場合
...
January 1, 2020
Git # Git Basic Git Tool Multiple GitHub Account on 1 PC gh ghq
January 1, 2020
Git Tool # git-secrets # git-secrets scans a git repository, finds credential information and prevents them from being committed. References # https://github.com/awslabs/git-secrets https://blog.katsubemakito.net/git/git-secrets Install # macOS
$ brew install git-secrets $ git clone https://github.com/awslabs/git-secrets.git $ cd git-secrets $ make install Basic usage # Set git-secrets to a git repository
$ git init $ git secrets --install Check commit history
$ git secrets --scan-history For AWS
$ git secrets --register-aws git-split-diffs # Display the results of the git diff command side by side like GitHub.
...