Skip to content

NS-natsu/git-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

130 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

概要

Gitの練習をするためのプロジェクト。

小言

見ているよ❤

地球は青かった

ガガーリン

  1. あいうえお
  2. かきくけこ

フォーマット用コマンド

1. 余分なスペースの除去

以下のコマンドで実行可能です

./scripts/clean-spaces

内部で実行しているコマンドの概要:

  1. インデントのみ存在する行から、インデントをなくす
find git-practice -type f -not -path '*/.*' \
  -exec grep -lIEZ "^ +$" {} + | xargs -0 -r sed -Ei "s/^ +$//g"
  1. 行末のスペースをなくす(mdファイルでは意味のある情報のため除外)
find git-practice -type f -not -path '*/.*' -not -name '*.md' \
  -exec grep -lIEZ "^(.*[^ ]) +$" {} + | xargs -0 -r sed -Ei "s/^(.*[^ ]) +$/\1/g"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages