Windows下git(msysgit)的安装

Windowsgitmsysgit)的安装

8/24/2009 11:56:27 PM

http://lzqustc.javaeye.com/blog/415751

注意:1.通过以下修改可以在Tortoisegit下通过ssh-key支持无须密码的远程登陆

        2.Hosting Git repositories, The Easy (and Secure) Way中,在ubuntu9.04中可以通过apt-get install gitosis直接安装gitosis,对于干净的ubuntu会提示我们安装python-setuptools以及open-ssh,在sudo -H -u git gitosis-init < /tmp/id_rsa.pub中必须保证/usr/bin/python指向python2.5

        3. mkdir free_monkey

       cd free_monkey
       git init
       git remote add origin git@YOUR_SERVER_HOSTNAME:free_monkey.git
       # do some work, git add and commit files
在此步中必须至少添加一个文件,下一步操作中才可以成功。
       git push origin master:refs/heads/master

     4.在更换了python2.5之后,再用apt-get install 更新别的组件,有时候会出现失败,这个时候只要将python的符号链接更改为python2.6即可。

 

 

1Create  github Account

eg.  you used the email:xxxxx@gmail.com

 

2Download && install MsysGit

  Then open the git bash , input the commends

  $ git config --global user.name "Your Name"

  $ git config --global user.email xxxxx@gmail.com

 

3Create SSH-KEY

  $ ssh-keygen  -C  ' xxxxx@gmail.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. 

 

4Create first project

  Loginto the github home and create your first project, Then you can see this page:

   

   Then open the link : Add another public key  add you created ssh-key 

 

5Next steps:

  $ mkdir first-apps

  $ cd first-apps

  $ git init

  $ touch README

  $ git add README

  $ git commit -m 'first commit'

  $ git remote add origin git@github.com:xxxxxx/first-apps.git

  $ git push origin master

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值