如果我在BranchA
中進行了一些更改,然後結帳BranchB
,那些文件將自動合併到BranchA
中。Git結賬不再警告未更改的文件
我用來獲取逼我提交或藏匿變化的警告: 類似:my_file.rb would be overwritten by merge. Cannot merge.
在某些時候,這種停止發生。有什麼想法嗎?這裏是我的.getconfig
[user]
name = <my name>
email = <my email>
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[color]
ui = always
interactive = always
diff = auto
branch = auto
status = auto
[color "diff"]
new = cyan
old = magenta
frag = yellow
meta = green
commit = normal
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
是的,它應該抱怨未經承諾的變化。這就是我想要的,但它只是讓我做結賬,它將未提交的文件合併到沒有大多數人獲得的警告/錯誤(包括我在其他機器上) – jacklin 2011-05-12 15:42:37