ユーザ用ツール

サイト用ツール


サイドバー

Index

はじめてのおつかい






DokuWiki整形記法


PlayGround



development:git

文書の過去の版を表示しています。


git

logを標準出力に出力

git --no-pager log 

logを比較

git --no-pager log release/1.11.1..release/19.01.0

–no-pager:結果を標準出力へ

最新の履歴だけを取得

git clone --depth 1 https://github.com/git/git

特定のフォルダのみpull

git init
git config core.sparsecheckout true
git remote add origin リポジトリのURL<https://exsample.com/git/repoitory>
echo I_want/this/folder/ > .git/info/sparse-checkout
git pull origin master

リポジトリの引越し

# git clone --mirror User@oldrepos.example.com:/path/to/Project.git
# git remote set-url --push origin User@newrepos.example.net:/path/to/Project.git
# git push --mirror

参考

development/git.1548219700.txt.gz · 最終更新: 2019/01/23 14:01 by hayashi