Note: The red words are all commands and the pictures are all effect pictures
First open the Git Bush tool in the file directory you want to upload
1. Initialize the warehouse
Command: git init
Effect:
2. Create and name a branch
git checkout -b your branch name
3. Submit the file to the temporary storage area
1. Submit documents
Submit all files under the folder git add * |or| Submit the specified file under the folder git add file name
2. Fill in the remarks
git commit -m 'remarks for this commit'
4. Establish a connection with the remote warehouse
git remote add origin your SSH address
5. Submit the file to the branch warehouse
git push origin your branch warehouse name
Six: Successful examples
After success, refresh the remote warehouse page on your Jihu and you will find that the branch warehouse instance has been added as follows: