使用GIT進行merge的時候,java
git merge --no-ff master
若是merge以後出現問題, 想進行回退, 可使用git
git reset --hard HEAD
來回退到最新的版本, 這時使用git status 可能出現 Untrack filespa
$ git status On branch fds_encrypt_conf Your branch is up-to-date with 'origin/fds_encrypt_conf'. Untracked files: (use "git add <file>..." to include in what will be committed) database/etl/ xxx/xxx.java xxx/xxxxx.java
是由於merge後增長了一些文件和目錄, 這時候想要清除掉, 可使用 git clean 來作 通常加兩個參數 -f(force) -d(directory)code
$ git clean -fd
Removing database/etl/
Removing xxx/xxx.java
Removing xxxxx/xxx.java