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、Create github Account
eg. you used the email:xxxxx@gmail.com
2、Download && 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
3、Create 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.
4、Create 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
5、Next 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