git shell
来源:互联网 发布:网络支付有没有风险 编辑:程序博客网 时间:2024/05/16 14:47
首先安装git shell :https://code.google.com/p/msysgit/downloads/list/ 基本上一路下一步就可以了。
尽管有图形界面,但是我还是喜欢用command,至于为什么,很简单,因为我会觉得我很高深!
然后你有github吧?好吧,虽然我也有csdncode,但是我总觉得那货不太靠谱,所以还是github吧。
在github中创建个项目,填了项目名提交后就会提示在命令行中应该怎么做了,就是这么个界面。
好吧,我们到本地创建个目录作为仓库。我的目录就叫GitHub,然后从开始菜单中选择Git/Git Bash进入git的命令行界面,按照上面的来吧。
切换到GitHub目录:
1
2
cd
d:
cd
github
然后执行上图中的那些个代码就好了。
当然,如果你第一次安装这些,可能会遇到问题,解决方法都有下面这些,但是我却记不住哪出来的了。
不过,首先需要本地的sshkey,https://help.github.com/articles/generating-ssh-keys
我做的是这些:
1
2
3
4
5
cd
~/.
ssh
ssh
-keygen -t rsa -C
"your_email@example.com"
#Enter passphrase (empty for no passphrase): [Type a passphrase]
#Enter same passphrase again: [Type passphrase again]
clip < ~/.
ssh
/id_rsa
.pub
执行完clip < ~/.ssh/id_rsa.pub之后key就被复制了,然后进入https://github.com/settings/profile选择“SSH Keys”然后点右边的Add SSH Key按钮,直接到Key下面的文本框中粘贴Title不写,点下面的Add Key就可以了。
在回来继续:
1
ssh
-T git@github.com
输入Enter passphrase的时候输入的密码看是否成功了,失败了就再找原因吧,因为我还没遇到。
然后提交代码阶段
1
2
3
git add .
git commit -m
"first_commit"
git push origin master
写的不详细,但就是这样,以后遇到问题再补完吧。
0 0
- Git Shell
- Git shell
- git shell
- Git shell
- git shell
- Git shell
- git shell 之 git clone
- git git bash git shell的区别
- git shell 常用命令大全
- git shell显示中文
- Git shell连接Bitbucket
- shell更新git项目
- git shell 命令大全
- git shell 命令大全
- git shell显示中文
- Git Shell 命令
- Git shell常用命令
- Git Shell命令大全
- iOS开发计算距离现在时间
- 扒一扒Android应用的续命大法
- Android Studio中文注释乱码解决方法
- leetcode power of three
- 自动生成ID
- git shell
- TPM管理的五大特点分析
- ORACLE日期时间函数大全(处理日期、字符、数字转换等函数用法)
- apche虚拟主机的配置
- 如何将eclipse项目导入android studio中
- 如何获取安卓用户的app使用频率
- Maven学习总结(15)——Maven 项目中pom.xml详解
- android 检查网络连接状态实现步骤
- jstl标签