To create a repository step:
1. Create a local folder
2. Go to the folder and execute
Git init
git will versioning files in this folder after initialization
3. Create a repository on a remote server (such as GitHub) and note the SSH
4. Implementation
Git remote Add < a name > <SSH>
you can then submit the code to the corresponding repository by this name
5. Submit Code
To create a git configuration before repository:
git config--global user.name "Your name" git config--global user.email "your email"
git config--global push.default "Simple"
To start creating repository:
mkdir folder name CD above that folder git init touch readmegit add readmegit commit-m ' description ' git remote add xxx <ssh>git push-u xxx mas ter
Upload code:
1. Drag the file you want to upload to git into this folder.
2. Execute the following command in turn:
git Add. Git commit-m ' description ' git push-u XXX Master
3, the above command execution process without error, then it should be uploaded, the wrong words I do not know ....
Git shell Command Upload code