IPアドレスが動的に変更されるネットワーク環境にあるsshサーバーに接続するときknown_hostsを無視させる方法
解決策
~/.ssh/config に設定(追記)する
1 2 3 4 5 |
Host 192.168.0.* StrictHostKeyChecking no UserKnownHostsFile /dev/null |
IPアドレスが動的に変更されるネットワーク環境にあるsshサーバーに接続するときknown_hostsを無視させる方法
~/.ssh/config に設定(追記)する
1 2 3 4 5 |
Host 192.168.0.* StrictHostKeyChecking no UserKnownHostsFile /dev/null |
言語名 | C++/CLI | C++/CX |
---|---|---|
正式名称 | C++ with Common Language Interface | C++ with Component eXtensions |
プラットフォーム | Common Language Runtime (CLR) (.NET Framework) |
Windows Runtime (WinRT) |
開発対象 | デスクトップ アプリ | Windows ストア アプリ (モダンUIアプリ) |
文字列型 | System.String | Platform::String |
配列の確保 | array<int>^ myArray = gcnew array<int>(10); | Array<int>^ myArray = ref new Array<int>(10); |
1 |
$ git tag NEW_TAG_NAME OLD_TAG_NAME |
1 |
$ git tag -d OLD_TAG_NAME |
1 |
$ git push origin :refs/tags/OLD_TAG_NAME |
1 |
$ git push origin NEW_TAG_NAME |
1 |
$ git push --tags origin |
1 2 3 4 5 6 7 |
ServerAlive Internal 60 # 再接続間隔 60秒 ServerAliveCountMax 120 # 再接続回数 120回 (例, 60秒×120回=2時間) Host myConnectionAlias # ssh接続 別名 HostName 192.168.0.123 # ホスト名(IPアドレス) User myAccountName # アカウント名 IdentityFile ~/.ssh/my_private_rsa |
1 |
$ ssh myAccountName@192.168.0.123 -i ~/.ssh/my_private_rsa |
1 |
$ ssh myConnectionAlias |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
$ git svn dcommit Committing to http://10.0.xx.xx/svn/xxx/trunk ... ERROR from SVN: URL access forbidden for unknown reason: access to '/svn/xxx/!svn/act/cc67ae8c-0dbc-4617-b691-8c0d32e2c51c' forbidden W: f0cb8a033f53abad69878f32d49060c566ccefe0 and refs/remotes/trunk differ, using rebase: :040000 040000 82025ea8b1266eb4fb3017c1e5eee026d407b7a2 22b412b9539c90a020752cdb5fc3d961e45ba75a M Classes :040000 040000 297335c9239410a3dfc7a97d2a4f32cd73ed78c7 22e7da8ed21d9875ff8e5c00905b4cd15f25b337 M xxxxx-lib :040000 040000 92f3164b6273cc59da1f07f1b59531b3da72c306 dd4c87d1c3d4a92944bb037d368a51903f9636f0 M xxxxx_xx.xcodeproj Current branch master is up to date. ERROR: Not all changes have been committed into SVN, however the committed ones (if any) seem to be successfully integrated into the working tree. Please see the above messages for details. |
git-svnを使ったコミット(git svn dcommit)に失敗し続けて丸一日悩みました。
rebaseして、mergeして、試行錯誤してようやく判明した原因はSubversionリポジトリに読み取り権限だけが与えられていて書き込み権限は与えられていなかった… 🙁
git svn rebase を実行すると下記のワーニングが表示される。
1 2 3 4 5 6 |
$ git svn rebase W: Refspec glob conflict (ref: refs/remotes/trunk): expected path: branches/trunk real path: trunk Continuing ahead with trunk Current branch master is up to date. |
.git/config の重複行(branches = 〜, tags = 〜)を削除する
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true precomposeunicode = false [svn-remote "svn"] url = http://192.168.0.123/svn/sample fetch = trunk:refs/remotes/trunk branches = branches/*:refs/remotes/* tags = tags/*:refs/remotes/tags/* branches = branches/*:refs/remotes/* tags = tags/*:refs/remotes/tags/* |
1 |
~/Library/Developer/CoreSimulator/Devices/xxxx-xxx-xx-xx/data/Media/DCIM/100APPLE |
1 |
~/Library/Application Support/iPhone Simulator/6.0/Media/DCIM/100APPLE |
1 |
~/Library/Application Support/iPhone Simulator/7.0/Media/DCIM/100APPLE |
1 |
~/Library/Application Support/iPhone Simulator/7.0-64/Media/DCIM/100APPLE |
1 |
$ find . -name '*.c' -print0 | xargs -0 grep 'pattern' |
デフォルトの区切り文字はスペース文字。-print0 指定で区切り文字をNUL文字に変更する。xargsの区切り文字指定をあわせてNUL文字にすることで、フォルダ名やファイル名に含まれているスペース文字を区切り文字と誤認することを回避する。
1 |
$ git svn clone --prefix=svn/ -s http://www.sample.com/my_repository |
1 |
$ git svn clone --prefix=svn/ --no-minimize-url http://www.sample.com/my_repository |
--prefix
をつけたとき
1 2 |
$ git branch -r svn/trunk |
1 2 3 |
$ git branch -a * master remotes/svn/trunk |
--prefix
をつけないとき
1 2 |
$ git branch -r trunk |
1 2 3 |
$ git branch -a * master remotes/trunk |
1 |
$ git svn rebase |
1 |
$ git checkout -b my_working_branch |
1 |
$ git checkout -b my_working_branch svn/my_working_branch |
※ git svn cloneにおいてprefix(svn/)をセットした効用
1 2 3 |
$ vi hello.c $ git add hello.c ... |
1 |
$ git commit -m "fix hello.c" |
1 |
$ git checkout master |
1 |
$ git merge --no-ff --no-commit my_working_branch |
fast-forwardを禁止して必ずマージコミットを作成する。ローカルリポジトリには変更履歴がブランチとして残り、リモートリポジトリに対してはマージコミットのみが反映される。
1 |
$ git commit -m "bug-fix: xxx" |
1 |
$ git svn dcommit |
1 |
$ git branch -d my_working_branch |
1 |
$ git branch |
1 |
* master |
1 |
$ git branch -r |
1 2 3 4 |
svn/xxx_1.0.0 svn/tags/1.0.0_release svn/tags/1.0.1_release svn/trunk |
1 |
$ git branch -a |
1 2 3 4 5 |
* master svn/xxx_1.0.0 svn/tags/1.0.0_release svn/tags/1.0.1_release svn/trunk |
Xcodeで複数行のインデントを調整する方法。