1.Creating a git repository git init--bare Library NameRemember, when you create it, first go to the directory you want to create and execute the command initializedEmptyGit Repositoryinche:/android_software/userworkspace/degit/sqf/2.Clone the resource under the user folder Git clone < warehouse directory >/g/software/repository/git/itheima < user directory >. Note: At clone time, the user directory must be empty $ git clone/e/android_software/userworkspace/developer/git/sqf.3.Create a file that is included in version control. GitAdd< file name > First execution Warning: WARNING:LF will is replaced by CRLF inchReadme.txt. ThefileWould has its original LineEndingsinchYour workingDirectory. Warning Handling: User information needs to be configured git config user.name ="Zhangsan"git config user.email ="[email protected]"$ gitAddReadme.txt4.Submitted to the local repository. Git commit < file name > editor under Linux:5.Push to the remote shared repository Git push origin master$ git push/e/android_software/userworkspace/developer/git/sqf/master6.Switch users, pull up the latest files git pullhooks script Info store Some configuration information objects the folder where the data resides in the native library refs
Git repository creation