Skip to content
SkyFlyingFishPublic

About

git 使用测试

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

git 使用

1. 让本地git软件关联一个文件夹 git init

2. 让本地git软件关联远程服务器 git remote add ...

3. 向列表中添加文件 git add filename

4. 设置列表中文件为提交状态 git commit filename -m "..."

5. 提交列表中的文件到服务器 git push -o origin master

6. 修改全部未提交文件状态 git commit -a -m"..."

7. 下载存储 git clone https://url

8. 删除服务器和本地文件 git rm filename

9. 查看分支 git branch

##10. 创建分支 git branch xxl ##11. 切换分支 git checkout xxl ##12. 查看所有分支 git branch -a

##13. 从服务器获取最新文件 git pull

14 解决内容冲突

1. git stash

2. git pull

3. git stash pop

4. git add

About

git 使用测试

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors