1.远程仓库的使用(github)

1.登录Github,新建一个仓库(远程仓库)

(1)使用Github账号密码登录

(2)点击+旁边的小三角,选择new repository--输入repository name--点击create repository成功创建远程仓库

(3)完成后页面显示仓库地址

2.在本地使用git clone把远程仓库的项目克隆下来

(1)在本地任意位置,右键--Git Bash Her--git clone--https://github.com/XX/Demo.git

3.在本地新建一个text文本,使用命令提交到Github远程仓库

(1)本地任意新建一个read.txt,任意输入内容

(2)git add read.txt   

         git commit -m "XXX"(XX输入内容是备注)   

         git remote add origin [email protected]:XXX/learnGitup.git  

        git push -u origin master

4.在远程仓库创建一个文件,在本地pull

(1)在远程仓库Github上--create new file ,创建一个Main.java文本

(2)在本地右键--Git Bash Here--git pull,即远程仓库新建的Main.java文本,在本地即可看到

5.删除远程仓库的方法

(1)选中删除的项目--Setting -- Delete this repository--在弹窗中输入选中项目的名称--点击删除

猜你喜欢

转载自www.cnblogs.com/android-it/p/9842534.html