Novice to upload files using GIT github

Taught you how to use Git
     # initialize a new Git repository
     
    1. Method 1: mkdir (make directory) test or directly into the folder and then open the git Second way: cd / folder cd (change directory) c: / folder
     2 .cd the Test (directory)
     # pwd view the directory operations 
    # LS View all current files 
    
    git init to enter the 
     
    $ git init 
     
    C: /Users/10243/Desktop/mydate/.git/ # will produce a .git provide project after initialization dependent configuration file      
    $ LS - A list of all files including hidden below 
    . / ../ .git / 
    added: LL $ 
    Total . 7 
    -rw-R & lt - r--. 1 130. 1847. 9 197 121 17:33 dated 13 is config
     - rw-r - r-- 1 1847 197121 73 . 9 17:33 dated 13 is Description
    
      
     
 
-rw-r - r-- 1 1847 197121 23 . 9 17:33 dated 13 is the HEAD 
    drwxr -XR X-0. 9. 1 197 121 dated 1847 17:33 Hooks 13 is / 
    drwxr -XR X-dated. 1 1847 197 121 13 17 0. 9 : 33 is info / 
    drwxr -XR X-0. 9. 1 197 121 dated 1847 17:33 Objects 13 is / 
    drwxr -XR X-0 197 121. 1 1847 17:33 refs. 9 dated 13 is / 

    
  
    
    3.git config - Global the user.name ' AliceMye '  
      git config - , Ltd. Free Join user.email ' [email protected] ' 
     
    4 .git status Check service status git
      # supplement cd .. back to the outermost layer represents from git
     
    5 Ba project onto the warehouse or the root directory of Youku server4. create your own
    
     6Add .git add server4 this file to git
    
   
    
     7.git the commit -m ' you want files to a file on git describe ' 
    
    
     # then send the file from scratch to git git repository on the local githua online 
     # $ git Status 
        Branch Master ON 
        Nothing to the commit, Working Tree Clean 
     # explained that it had no upload files Clean
     
       
    8.git the Add remote Origin https://github.com/AliceMye/ ttt.git
     # remote add the code to the file path to the remote file in ( github remote file)
    
     
    9.git the Push - U origin Master 
    
    # the Push to remote github repository origin (origin) 
    # $ -u git the Push origin Master 
    Enumerating Objects: 47 ., DONE 
    Counting Objects: 100% (47/47 ), DONE .
    Delta compression using up to 4 threads
    Compressing objects: 100% (44/44), done.
    Writing objects: 100% (47/47), 17.10 MiB | 1.16 MiB/s, done.
    Total 47 (delta 0), reused 0 (delta 0)
    remote: warning: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
    remote: warning: See http://git.io/iEPt8g for more information.
    remote: warning: File youku_server4/upload_movie/3a0492cf5b522850b9957ea96305bd307a6018dda151bbdcf94d0cff11a07e6b1.今日内容.mp4 is 75.65 MB; this IS larger Within last GitHub ' S Recommended maximum size of 50.00 MB File 
    the To https://github.com/AliceMye/ yyy.git
      * [new new Branch] Master -> Master 
    Branch ' Master ' SET Track Remote Branch up to ' Master '  from  ' Origin ' . 
    
    
    # Upload ended Tip: to rebuild the secret key to generate a secret key, then after the init git 
    10.ssh-keygen -t rsa -C " https://github.com/AliceMye/yyy.git " 
    # enter directly over the secret key generation 
        1. /c/Users/10243/.ssh/ id_rsa find the file open copy to githua ssh keys in
         #SSH-keygen -t rsa $ -C "https://github.com/AliceMye/yyy.git" 
        # Generating public / Private Key pair rsa. 
        # The Enter the Save to File in Which at The Key (/ c / the Users / 10243 / .ssh / id_rsa):
 
        2 . verifying successful 
            
        # verify successful, enter the following command in the git bash in 
        SSH -T [email protected]   # GitHub # githua command 
        SSH -T [email protected]   # gitee # code clouds the test command
   
    

 

Guess you like

Origin www.cnblogs.com/mofujin/p/11519335.html