git简单命令

来源:互联网 发布:水星路由器网络不稳定 编辑:程序博客网 时间:2024/04/29 04:44

1.git环境,下载git shell(windows环境下:https://desktop.github.com/)

2.1>

ssh-keygen -t rsa -C "xxxxx@xxxxx.com"# Creates a new ssh key using the provided email# Generating public/private rsa key pair...查看公钥
2.2>

cat ~/.ssh/id_rsa.pub# ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6eNtGpNGwstc....

3.git pull 同步代码

4.git add 添加到本地仓库

5.git commit -m ""  描述信息

6.git push 提交代码

7.git stash 储藏    保存当前的工作空间

8.git stash apply  将储藏的工作内容 重新提取


0 0
原创粉丝点击