git的指令
1、git clone 路徑 文件夾名字 ;克隆文件
2、ssh-keygen -t rsa -C 郵箱地址? (添加公匙:一直回車就行)
找到公匙復制,到github中設置
打開GitHub中用戶下的setting,找到ssh,填寫title,下面的框中填寫復制的公匙
3、git config --global user.name 用戶名
4、git config --global user.email 郵箱
5、git status? 查看狀態
6、git add . 放進倉庫中
7、git config --global alias.st status? 改status為st (其他指令也可以改)
8、git commit -m '描述' 提交到暫存區
9、git push 提交到GitHub上
10、git rm + 文件名? 刪除文件
11、git branch + 分支名字? 創建分支
12、git checkout + 分支名字? 進入分支
13、git branch 查看分支
14、git push --set-upstream origin + 分支名字? 提交分支到GitHub
15、git branch -a 查看所有分支
16、git merge + 分支名字? 向你所在的分支,合并分支
17、git fetch --all 找到所有線上分支;
轉載于:https://www.cnblogs.com/naxiaoming/p/8111466.html
總結
- 上一篇: cxgrid列高度行宽度定义
- 下一篇: iOS 关于权限设置的问题