我的gitlab回购似乎有些问题..
我刚刚分叉了kaldi回购(我想一年前).. 并希望用当前版本的kaldi repo更新我的回购。
我最终关注此guide
我想我推出了最新的版本?...但是现在我在推送/拉动我的本地回购时遇到了问题..
~/kaldi-trunk$ git pull
X11 forwarding request failed on channel 0
error: The following untracked working tree files would be overwritten by merge:
egs/deltas/s5/data/lang/G.fst
egs/deltas/s5/data/lang/L.fst
egs/deltas/s5/data/lang/L_disambig.fst
egs/deltas/s5/data/lang/oov.int
egs/deltas/s5/data/lang/oov.txt
egs/deltas/s5/data/lang/phones.txt
egs/deltas/s5/data/lang/phones/align_lexicon.int
egs/deltas/s5/data/lang/phones/align_lexicon.txt
egs/deltas/s5/data/lang/phones/context_indep.csl
egs/deltas/s5/data/lang/phones/context_indep.int
egs/deltas/s5/data/lang/phones/context_indep.txt
egs/deltas/s5/data/lang/phones/disambig.csl
egs/deltas/s5/data/lang/phones/disambig.int
egs/deltas/s5/data/lang/phones/disambig.txt
egs/deltas/s5/data/lang/phones/extra_questions.int
egs/deltas/s5/data/lang/phones/extra_questions.txt
egs/deltas/s5/data/lang/phones/nonsilence.csl
egs/deltas/s5/data/lang/phones/nonsilence.int
egs/deltas/s5/data/lang/phones/nonsilence.txt
egs/deltas/s5/data/lang/phones/optional_silence.csl
egs/deltas/s5/data/lang/phones/optional_silence.int
egs/deltas/s5/data/lang/phones/optional_silence.txt
egs/deltas/s5/data/lang/phones/roots.int
egs/deltas/s5/data/lang/phones/roots.txt
egs/deltas/s5/data/lang/phones/sets.int
egs/deltas/s5/data/lang/phones/sets.txt
egs/deltas/s5/data/lang/phones/silence.csl
egs/deltas/s5/data/lang/phones/silence.int
egs/deltas/s5/data/lang/phones/silence.txt
egs/deltas/s5/data/lang/phones/wdisambig.txt
egs/deltas/s5/data/lang/phones/wdisambig_phones.int
egs/deltas/s5/data/lang/phones/wdisambig_words.int
egs/deltas/s5/data/lang/phones/word_boundary.int
egs/deltas/s5/data/lang/phones/word_boundary.txt
egs/deltas/s5/data/lang/tmp/CLG_1_0.fst
egs/deltas/s5/data/lang/tmp/CLG_3_1.fst
egs/deltas/s5/data/lang/tmp/LG.fst
egs/deltas/s5/data/lang/tmp/disambig_ilabels_1_0.int
egs/deltas/s5/data/lang/tmp/disambig_ilabels_3_1.int
egs/deltas/s5/data/lang/tmp/ilabels_1_0
egs/deltas/s5/data/lang/tmp/ilabels_3_1
egs/deltas/s5/data/lang/topo
egs/deltas/s5/data/lang/words.txt
egs/deltas/s5/data/local/corpus.txt
egs/deltas/s5/data/local/lang/align_lexicon.txt
egs/deltas/s5/data/local/lang/lex_ndisambig
egs/deltas/s5/data/local/lang/lexicon.txt
egs/deltas/s5/data/local/lang/lexiconp.txt
egs/deltas/s5/data/local/lang/lexiconp_disambig.txt
egs/deltas/s5/data/local/lang/nonsilence_phones.txt
egs/deltas/s5/data/local/lang/optional_silence.txt
egs/deltas/s5/data/local/lang/phone_map.txt
egs/deltas/s5/data/local/lang/silence_phones.txt
egs/deltas/s5/data/local/tmp/lm.arpa
egs/deltas/s5/data/local/tmp/vocab-full.txt
egs/deltas/s5/data/local/words.txt
egs/deltas/s5/data/test/.backup/cmvn.scp
egs/deltas/s5/data/test/.backup/feats.scp
egs/deltas/s5/data/test/.backup/spk2utt
egs/deltas/s5/data/test/.backup/text
egs/deltas/s5/data/test/.backup/utt2spk
egs/deltas/s5/data/test/.backup/wav.scp
egs/deltas/s5/data/test/cmvn.scp
egs/deltas/s5/data/test/data/cmvn_test.ark
egs/deltas/s5/data/test/data/cmvn_test.scp
egs/deltas/s5/data/test/fbbh/an86-fbbh-b.sph
egs/deltas/s5/data/test/fbbh/an87-fbbh-b.sph
egs/deltas/s5/data/test/fbbh/an88-fbbh-b.sph
egs/deltas/s5/data/test/fbbh/an89-fbbh-b.sph
egs/deltas/s5/data/test/fbbh/an90-fbbh-b.sph
egs/deltas/s5/data/test/fbbh/cen1-fbbh-b.sph
egs/deltas/s5/data/test/fbbh/cen2-fbbh-b.sph
egs/deltas/s5/data/test/fbbh/cen3-fbbh-b.sph
egs/deltas/s5/data/test/fbbh/cen4-fbbh-b.sph
egs/deltas/s5/data/test/fbbh/cen5-fbbh-b.sph
egs/deltas/s5/data/test/fbbh/cen6-fbbh-b.sph
egs/deltas/s5/data/test/fbbh/cen7-fbbh-b.sph
egs/deltas/s5/data/test/fbbh/cen8-fbbh-b.sph
egs/deltas/s5/data/test/feats.scp
egs/deltas/s5/data/test/ffmm/an291-ffmm-b.sph
egs/deltas/s5/data/test/ffmm/an292-ffmm-b.sph
egs/deltas/s5/data/test/ffmm/an293-ffmm-b.sph
egs/deltas/s5/data/test/ffmm/an294-ffmm-b.sph
egs/deltas/s5/data/test/ffmm/an295-ffmm-b.sph
egs/deltas/s5/data/test/ffmm/cen1-ffmm-b.sph
egs/deltas/s5/data/test/ffmm/cen2-ffmm-b.sph
egs/deltas/s5/data/test/ffmm/cen3-ffmm-b.sph
egs/deltas/s5/data/test/ffmm/cen4-ffmm-b.sph
egs/deltas/s5/data/test/ffmm/cen5-ffmm-b.sph
egs/deltas/s5/data/test/ffmm/cen6-ffmm-b.sph
egs
Aborting
这是我没有推动的本地更改,我不需要这样做.gitignore应该忽略它们。
# Compiled extensionless executable files in /src/*/
# This stanza must precede wildcard patterns below!
/src/*/*
!/src/*/*.*
!/src/doc/*
!/src/*/Makefile
!/src/*/README
# Compiled Object files and python ciles
*.slo
*.lo
*.o
*.obj
*.pyc
# profiling files and core files
*.nvprof
core
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Test log files
*.testlog
# emacs saves
[#]*[#]
.[#]*
*~
# [ecg]tag files
TAGS
tags
GTAGS
GRTAGS
GPATH
GSYMS
# python compiled sources
*.pyc
# Make dependencies
.depend.mk
# some weird thing that MacOs creates.
*.dSYM
# Windows executable, symbol and some weird files.
*.exe
*.pdb
*.exp
*.manifest
# /src/
/src/.short_version
/src/base/version.h
/src/doc/table/
/src/doc/tools.dox
/src/doc/*.html
/src/htdocs/
/src/html.tar.gz
/src/kaldi.mk
/src/kaldi.mk.tmp
/src/kaldi.mk.bak
# /egs/
/egs/*/s*/mfcc
/egs/*/s*/plp
/egs/*/s*/exp
/egs/*/s*/data
# /tools/
/tools/ATLAS/
/tools/atlas3.8.3.tar.gz
/tools/irstlm/
/tools/openfst
/tools/openfst-1.3.2.tar.gz
/tools/openfst-1.3.2/
/tools/openfst-1.3.4.tar.gz
/tools/openfst-1.3.4/
/tools/openfst-1.4.1.tar.gz
/tools/openfst-1.4.1/
/tools/openfst-1.5.4.tar.gz
/tools/openfst-1.5.4/
/tools/openfst-1.6.0.tar.gz
/tools/openfst-1.6.0/
/tools/openfst-1.6.1.tar.gz
/tools/openfst-1.6.1/
/tools/openfst-1.6.2.tar.gz
/tools/openfst-1.6.2/
/tools/pa_stable_v19_20111121.tgz
/tools/portaudio/
/tools/sctk-2.4.0-20091110-0958.tar.bz2
/tools/sctk-2.4.0/
/tools/sctk-2.4.10-20151007-1312Z.tar.bz2
/tools/sctk-2.4.10/
/tools/sph2pipe_v2.5.tar.gz
/tools/sph2pipe_v2.5/
/tools/kaldi_lm.tar.gz
/tools/sctk-2.4.8-20130429-2145.tar.bz2
/tools/sctk-2.4.9-20141015-1634Z.tar.bz2
/tools/sctk-2.4.9/
/tools/OpenBLAS
/tools/sctk
/tools/sctk-2.4.8
/tools/srilm
/tools/CLAPACK_include
/tools/kaldi_lm
/tools/env.sh
/tools/g2p-r1668.tar.gz
/tools/mpg123
/tools/mpg123-1.21.0.tar.bz2
/tools/mpg123-1.21.0
/tools/pthreads
/tools/pthreads*.zip
/tools/sequitur
/tools/sequitur-g2p
/tools/srilm.tgz
/tools/liblbfgs-1.10.tar.gz
/tools/liblbfgs-1.10/
/tools/openfst-1.5.0.tar.gz
/tools/openfst-1.5.0/
/tools/srilm-1.7.2-beta.tar.gz
/tools/liblbfgs/
/tools/sequitur-g2p/
/tools/phonetisaurus-g2p
/tools/phonetisaurus-g2p/
/kaldiwin_vs*
但是好吧......无论如何都试图添加它们会给我这个错误信息:
git add egs/deltas/*
~/kaldi-trunk$ git commit -m "deltas"
On branch master
Your branch and 'origin/master' have diverged,
and have 7555 and 30 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
nothing to commit, working directory clean
所以..我好像被卡住了.. 我不确定我明白他们的意思是我有不同的提交吗?
~/kaldi-trunk$ git remote -v
origin (My local repo) (fetch)
origin (My local repo) (push)
upstream git@github.com:kaldi-asr/kaldi.git (fetch)
upstream git@github.com:kaldi-asr/kaldi.git (push)
答案 0 :(得分:0)
请设置git merge origin/master
,git rebase origin/master
或git pull --rebase
将您的本地回购与orgin/master
回购合并。
答案 1 :(得分:0)
如果不需要这些未跟踪的文件,那么您可以在与git clean
合并之前清理您的仓库。如果您不确定这将删除哪些文件,您可以使用' -n'来干燥命令。
您可能需要的完整命令是:
git clean -fdx
其中f - force,d - 目录,x - 忽略文件或干运行:
git clean -fdxn
完成此操作后,您应该清楚正常合并。
关于不同提交的部分只是意味着您的分支上有7555个不在主服务器上的提交,而在主服务器上的30个提交不在您的分支上。对于两个已经分歧的分支来说这是完全正常的(它只是说双方都承诺另一方没有)