Skip to content

Instantly share code, notes, and snippets.

@f7q
Last active January 29, 2018 11:36
Show Gist options
  • Save f7q/d941b9db9ca349c61e678f29e151325f to your computer and use it in GitHub Desktop.
Save f7q/d941b9db9ca349c61e678f29e151325f to your computer and use it in GitHub Desktop.
git 関連のコマンド
# サブコマンド cd git pull origin master
git -C $(pwd)/learning pull --progress -v --no-rebase "origin"
# サブコマンド cd git checkout master
git -C $(pwd)/learning checkout master --
# 最新をフェッチ
git fetch https://github.com/f7q/learning.git
# ミラーリング
cd ..
git clone --mirror https://github.com/f7q/learning.git
cd learning.git
git remote add --mirror=push github git@github.com:f7q/learning.git
git push github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment