git的安装与使用(一)--windows平台
2010-05-07 12:08
656 查看
Git
的安装与使用
1、Create
github
Account (在github网站上创建一个账号)
eg. you used the email:
taito@yahoo.com
2、Download && install MsysGit
(下载windows平台下的git软件)
Then open the git
bash , input the commends
$ git
config --global user.name "Your Name"
Your Name 是你注册时用的用户名
$ git
config --global user.email
taito@yahoo.com
3、Create SSH-KEY (创建SSH-key)
$ ssh-keygen -C
'
taito@yahoo.com'
-t rsa
# The git
bash ask you to enter something , but you can
Skip
everything ,
just push the "
ENTER
"
key, when it 's finished,you need open the file:
id_rsa.pub
And
copy the key.
创建rsa, 一路回车,最后会提示你
Your public key has been saved in .... (某个地方) .pub
文件
打开这个文件,复制key。
登陆git网站,进入你的个人管理平台,创建一个ssh key,title随便填写,下面的key粘贴此段代码。
4、Create first project (创建你的第一个项目)
Loginto the github home and create your first project, Then you can see this page:
取个项目的名字,然后继续.会看到操作步骤。
的安装与使用
1、Create
github
Account (在github网站上创建一个账号)
eg. you used the email:
taito@yahoo.com
2、Download && install MsysGit
(下载windows平台下的git软件)
Then open the git
bash , input the commends
$ git
config --global user.name "Your Name"
Your Name 是你注册时用的用户名
$ git
config --global user.email
taito@yahoo.com
3、Create SSH-KEY (创建SSH-key)
$ ssh-keygen -C
'
taito@yahoo.com'
-t rsa
# The git
bash ask you to enter something , but you can
Skip
everything ,
just push the "
ENTER
"
key, when it 's finished,you need open the file:
id_rsa.pub
And
copy the key.
创建rsa, 一路回车,最后会提示你
Your public key has been saved in .... (某个地方) .pub
文件
打开这个文件,复制key。
登陆git网站,进入你的个人管理平台,创建一个ssh key,title随便填写,下面的key粘贴此段代码。
4、Create first project (创建你的第一个项目)
Loginto the github home and create your first project, Then you can see this page:
取个项目的名字,然后继续.会看到操作步骤。
Global setup:
Download and install Git git config --global user.name "Your Name" git config --global user.email squarezw@yahoo.com.cn
Next steps:
mkdir pool cd pool git init touch README git add README git commit -m 'first commit' git remote add origin git@github.com:squarezw/pool.git git push origin master 在你的git bash下完成到这里后,看到成功上传项目后,即可直接跳到最下面的Continue! 如果出现Permission denied (publickey). 一般是你的ssh key没有正确添加。
Existing Git Repo?
cd existing_git_repo git remote add origin git@github.com:squarezw/pool.git git push origin master
Importing a Subversion Repo?
Click here
When you're done:
Continue
未完待续....
相关文章推荐
- git的安装与使用(一)--windows平台 .
- 使用Gitblit在Windows平台上安装与配置Git Server
- 使用Gitblit在Windows平台上安装与配置Git Server
- 使用Git拉取GitLab上的项目 原创 2015年06月27日 12:42:29 标签: git 一、安装Git(windows版、其他平台参阅) 去Git的官网,下
- 22.1-22.6 代码管理平台,安装svn以及使用(linux,windows),单机使用git
- Windows平台下ADB的安装与使用
- 安装Git For Windows时尽量不要使用Portable版本(安装体积过大问题)
- Windows平台安装Git Flow
- Git在Windows上安装与使用(一)
- windows Git的安装和使用
- svn实战-基于windows平台下SVN的安装与使用详细步骤
- git & node & gulp - 基础安装使用 - Windows
- Windows下,Git的安装,使用,以及远程github
- Windows平台下SVN安装配置及使用
- windows平台下安装、编译、使用mongodb C++ driver 正常运行
- go git 安装配置与使用 (windows 7 64bit)
- linux平台从源码安装git及指定系统使用的git版本
- oracle安装后使用SQLPLUS命令创建表空间和修改用户默认表空间windows平台
- Windows平台下Git的安装msysgit与配置