git 新手的問題 有關分支中刪除檔案 - Linux
By Todd Johnson
at 2013-01-30T10:06
at 2013-01-30T10:06
Table of Contents
最近開始學習git
但有點搞不懂他對分支中刪除檔案的定義
我原本在 master
把一個檔案加入追蹤 ( git add test.txt )
然後commit ( git commit -m "master" )
接著創建並切換到分支 develop ( git checkout -b develop master )
然後在develop中刪掉這個檔案 ( rm test.txt )
這時候如果我不做其他事情就切換回 master ( git checkuot master )
發現master的 text.txt檔案也被砍了!?
即使我先在develop做了commit ( git commit -m "delete test" )
然後再切換回master 也一樣該檔案不見
---
我看教學上的想法是所有在develop裡面做的更動
直到我回master下git merge指令前,都不會動到master裡面的東西
請問是我的想法錯了嗎?
還是我的指令下的不對呢
--
Insanity is doing the same thing over and over again while expecting a
different outcome.
--
但有點搞不懂他對分支中刪除檔案的定義
我原本在 master
把一個檔案加入追蹤 ( git add test.txt )
然後commit ( git commit -m "master" )
接著創建並切換到分支 develop ( git checkout -b develop master )
然後在develop中刪掉這個檔案 ( rm test.txt )
這時候如果我不做其他事情就切換回 master ( git checkuot master )
發現master的 text.txt檔案也被砍了!?
即使我先在develop做了commit ( git commit -m "delete test" )
然後再切換回master 也一樣該檔案不見
---
我看教學上的想法是所有在develop裡面做的更動
直到我回master下git merge指令前,都不會動到master裡面的東西
請問是我的想法錯了嗎?
還是我的指令下的不對呢
--
Insanity is doing the same thing over and over again while expecting a
different outcome.
--
Tags:
Linux
All Comments
By Jack
at 2013-01-30T23:49
at 2013-01-30T23:49
By Belly
at 2013-01-31T23:37
at 2013-01-31T23:37
By Vanessa
at 2013-02-04T07:10
at 2013-02-04T07:10
By Susan
at 2013-02-08T22:33
at 2013-02-08T22:33
By Hedy
at 2013-02-12T22:09
at 2013-02-12T22:09
By Valerie
at 2013-02-15T09:29
at 2013-02-15T09:29
By Enid
at 2013-02-18T13:34
at 2013-02-18T13:34
By Bennie
at 2013-02-22T10:53
at 2013-02-22T10:53
By Yuri
at 2013-02-27T04:25
at 2013-02-27T04:25
By Michael
at 2013-03-01T19:18
at 2013-03-01T19:18
Related Posts
Ubuntu上架server
By Bennie
at 2013-01-29T21:20
at 2013-01-29T21:20
無法安裝ubuntu 8.10
By Queena
at 2013-01-29T19:42
at 2013-01-29T19:42
Centos 下印表機有時好有時不好
By Lauren
at 2013-01-29T14:25
at 2013-01-29T14:25
關於MAIL SERVER的幾個問題
By Odelette
at 2013-01-29T09:30
at 2013-01-29T09:30
public key無法登入怎麼辦?
By Donna
at 2013-01-29T07:15
at 2013-01-29T07:15