LoginSignup
0
0

More than 3 years have passed since last update.

[memo] git

Last updated at Posted at 2020-05-03

submoduleの追加

submoduleを最初に取り込む

  • ローカルの設定を初期化して、プロジェクトからのデータを取得する
    • git submodule init
    • git submodule update

main project, submoduleを同時に取り込む (--recursive)

  • git clone --recursive https:///xxxxx

submoduleの更新を取得しmergeする。

  • git submodule update --remote --merge

Gitが管理されているファイルのローカル変更を無視する。(サーバーで設定ファイルをいじったりする時に便利)

git update-index --skip-worktree path/to/file
git ls-files -v | grep ^S

reset url

git remote set-url origin https://ユーザ名:アクセストークン@github.com/ユーザ名/リポジトリ名.git/
git remote -v

未使用なコンテナ, イメージ, ネットワークを一括削除

docker system prune --volumes
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0