2018年5月24日 星期四

Git 刪除 branch

使用Git Bash here(right click on folder):
git checkout master

git branch -d XX_app
(check  the delete action:git branch ,  force delete: -d to -D ) 

git push origin --delete XX_app

如果發生 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @


ssh-keygen -R 10.10.10.10 解決

再重新  git push origin --delete XX_app

Git 舊資料發生問題


git push origin --delete WW_App

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is

解法:  ssh-keygen -R 10.10.10.10

Git 舊資料 push 到 新的IP or repository

Git 舊資料發生問題:
git push origin --delete WW_App

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is

解法:  ssh-keygen -R 10.10.10.10

Git 舊資料 push 到 新的IP or repository:

改repo位置
git remote set-url origin alex_lin@10.8.70.22:/data/git/Demo_app

確認成功與否
git remote -v

使用TotoriseGit or Git bash ,創造新的branch ,再切換到該branch

只需再push 上傳到git server(不需commit) ,因為push 可將 commit log 紀錄帶上去






2018年5月21日 星期一

Git 創造 branch

在本地機器上創建分支並切換到此分支:
$ git checkout -b [name_of_your_new_branch]

改變成此分支
$ git checkout [name_of_your_new_branch]

push 上傳此分支
$ git push origin [name_of_your_new_branch]

2018年5月14日 星期一

Teraterm 亂碼問題 解決

使用4.98 版本


將語言設為japanese


設定方式:




原因分析:
看人名  看起來teraterm的開發者為日本人,可能在開發時 將japanese設定為global english的全域設定,所以在設成其他語言時 會脫離英文語系而造成command的亂碼現象