fatal: Not a git repository (or any of the parent directories): .gitのソリューション

4772 ワード

Ubuntu16.04コンパイル時にエラー:fatal:Not a git repository(or any of the parent directories):.git
ソリューション:1、ホームに次のように入力します.
git --help

表示:
  :git [--version] [--help] [-C <path>] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]

           Git   :

       (  :git help tutorial)
   clone                  
   init              Git                 

        (  :git help everyday)
   add                 
   mv                   、       
   reset           HEAD      
   rm                     

       (  :git help revisions)
   bisect                bug    
   grep                
   log              
   show                
   status            

  、           
   branch       、       
   checkout               
   commit            
   diff             、            
   merge                 
   rebase                     
   tag          、  、        GPG        

  (  :git help workflows)
   fetch                    
   pull                        
   push                   

   'git help -a'   'git help -g''git help '   'git help '

2、入力git init
      Git     /home/linzhiwei/.git