1. log on to GitHub to create a repository (Remote repository)
(1) log on with the GitHub account and password
(2) Click+Click new repository and enter repository name. Click Create repository to create a remote repository.
(3) The repository address is displayed on the page.
2. Use git clone locally to clone the remote repository project
(1) In any local location, right-click -- git bash her -- git clone -- https://github.com/XX/Demo.git
3. Create a text file locally and use the command to submit it to the GitHub remote repository.
(1) any new read.txt, any input content
(2) git add read.txt
Git commit-M "XXX" (XX inputs are remarks)
Git remote add origin [email protected]: xxx/learngitup. Git
Git push-u origin master
4. Create a file in the remote repository and run pull locally.
(1) On the remote repository GitHub -- create new file, create a main. Java text
(2) Right-click locally -- git Bash here -- git pull, that is, the main. Java text created in the remote repository. You can see it locally.
5. How to delete a remote Repository
(1) Select the deleted project -- setting -- delete this repository -- enter the name of the selected project in the pop-up window -- click Delete
1. Use of remote repository (GitHub)