2 Star 0 Fork 0

walker30 / git-quick-start

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

#git-quick-start

这是一个git的快速入门项目,使用一些gif图片来播放一些基础的git命令使用方法。

  • 生成ssh-key

这里是使用ssh-keygen的默认配置生成了秘钥对,没有给私钥加密码,非常的简单,也很实用,注意私钥(~/.ssh/id_rsa)请谨慎保存,泄露了就如同泄露了密码一样 生成ssh-key

  • Clone and push

没什么好说的,就是clone下来,编辑一些文件,提交然后push。 Clone adn push

  • 创建和切换分支

创建分支git branch new_branch_name 切换分支 git checkout target_branch_name ,哦忘了,删除分支是git branch -D target_branch_name 创建和切换分支

  • 推送远程分支

推送远程分支很简单,git push origin local_branch_name:remote_branch_name 推送远程分支

  • merge

merge用于合并分支,git merge source_branch merge

  • tag

可使用git子命令tag来给版本打标签做标记,git tag xxx tag

Repository Comments ( 0 )

Sign in for post a comment

About

这是一个给小白看的快速入门git的简易教程,使用gif的方式播放命令行的使用记录 expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/haifeng0730/git-quick-start.git
git@gitee.com:haifeng0730/git-quick-start.git
haifeng0730
git-quick-start
git-quick-start
master

Search