Windows下git(msysgit)的安装
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即可。
1、CreategithubAccount
eg.youusedtheemail:[email protected]
2、Download&&install MsysGit
Thenopenthegitbash,inputthecommends
$gitconfig--globaluser.name"YourName"
$gitconfig--globaluser.email[email protected]
3、CreateSSH-KEY
$ssh-keygen-C'[email protected]'-trsa
#Thegitbashaskyoutoentersomething,butyoucanSkipeverything,
justpushthe"ENTER"key,whenit'sfinished,youneedopenthefile:id_rsa.pub
Andcopythekey.
4、Createfirstproject
Logintothegithubhomeandcreateyourfirstproject,Thenyoucanseethispage:
Thenopenthelink:Addanotherpublickey,addyoucreatedssh-key
5、Nextsteps:
$mkdirfirst-apps
$cdfirst-apps
$gitinit
$touchREADME
$gitaddREADME
$gitcommit-m'firstcommit'
[email protected]:xxxxxx/first-apps.git
$gitpushoriginmaster