ユーザ用ツール

サイト用ツール


development:git

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
development:git [2020/07/28 00:26]
hayashi [ユーザ名・パスワードの設定]
development:git [2022/08/14 22:23] (現在)
hayashi [リポジトリの引越し]
行 47: 行 47:
 現在チェックアウトしているブランチ名を<new branchname>に変更\\ 現在チェックアウトしているブランチ名を<new branchname>に変更\\
 git branch -m <old branchname> <new branchname>で変更元を指定することも可能 git branch -m <old branchname> <new branchname>で変更元を指定することも可能
 +
 +==== git branch --contains ====
 +現在のブランチ名を表示
 +
 +contains オプションは、指定したコミットを含むブランチのみを表示
 +
  
 ===== 標準出力に出力 ===== ===== 標準出力に出力 =====
行 95: 行 101:
   # git push --mirror   # git push --mirror
  
 +  $ git clone --mirror <SOURCE_REPOSITORY_URL>
 +  $ cd <REPOSITORY> ⇐ ⇑のコマンドで作成される ~.gitのフォルダ
 +  $ git push --mirror <DESTINATION_REPOSITORY_URL>
 ===== ユーザ名・パスワードの設定 ===== ===== ユーザ名・パスワードの設定 =====
  
行 103: 行 112:
 </file> </file>
  
-または、git cloneするURLに埋め込む((user,passに@が含まれているとエラーになるのでちうい。記号はエンコードしませう))+または、git cloneするURLに埋め込む((user,passに@が含まれているとエラーになるのでちうい。記号はエンコードしませう))((.git/config のURLにuser、passがまんま埋め込まれるので要注意))
  
   git clone https://user:pass@github.com/pathto/repos.git   git clone https://user:pass@github.com/pathto/repos.git
development/git.1595863587.txt.gz · 最終更新: 2020/07/28 00:26 by hayashi