git ssh eclipse使用记录
来源:互联网 发布:腾讯足球数据分析大师 编辑:程序博客网 时间:2024/06/04 18:10
一、安装Git
yum install git
然后进行配置:
useradd --home /home/git git
passwd git
创建完用户后就可以切换到git用户下进行后面的设置,如用户名和邮箱:
su git
git config --global user.name "somebody"
git config --global user.email "somebody@example.com"
设置默认将会保存在~/.gitconfig文件中。
此时,Git的功能就已经可以使用了。为了方便后面的操作,可以先来创建一个空版本库。
mkdir ~/repo
然后建立项目目录
mkdir ~/repo/huhamhire-hosts
切换到项目目录,并进行初始化
cd ~/repo/huhamhire-hosts
git init --bare --shared
如果到该项目目录中运行 git init 命令,并加上 --shared 选项,那么 Git 会自动修改该仓库目录的组权限为可写。
至此,一个初始的空项目版本库就配置完成了,后面安装了gitosis之后便可向库中推送
二、克隆git仓库
git clone git@192.168.1.128:/home/git/repo/huhamhire-hosts
yum install git
然后进行配置:
useradd --home /home/git git
passwd git
创建完用户后就可以切换到git用户下进行后面的设置,如用户名和邮箱:
su git
git config --global user.name "somebody"
git config --global user.email "somebody@example.com"
设置默认将会保存在~/.gitconfig文件中。
此时,Git的功能就已经可以使用了。为了方便后面的操作,可以先来创建一个空版本库。
mkdir ~/repo
然后建立项目目录
mkdir ~/repo/huhamhire-hosts
切换到项目目录,并进行初始化
cd ~/repo/huhamhire-hosts
git init --bare --shared
如果到该项目目录中运行 git init 命令,并加上 --shared 选项,那么 Git 会自动修改该仓库目录的组权限为可写。
至此,一个初始的空项目版本库就配置完成了,后面安装了gitosis之后便可向库中推送
二、克隆git仓库
git clone git@192.168.1.128:/home/git/repo/huhamhire-hosts
参考:
Provided that you already:
Setup your SSH keys with Github (Window > Preferences > General > Network Connections > SSH2)
Setup your local repository (you can follow this guide for that)
Created a Github repository (same guide)
... here's how you do it:
- Go to the Git Repositories view (Window > Show View > Other > Git Repositories)
- Expand your Repository and right click Remotes --> "Create Remote"
- "Remote Name": origin, "Configure push": checked --> click "OK"
- Click the "Change..." button
- Paste your git URI and select protocol ssh -->click "Finish"
- Now, click "Save and Push" and NOW you should get a password prompt -->enter the public key passphrase here (provided that you DID (and you should) setup a passphrase to your public key) -->click "OK"
- Now you should get a confirmation window saying "Pushed to YourRepository - origin" -->click "OK"
- Push to upstream, but this timeuse "Configured remote repository" as your Destination Git repository
- Go get yourself a well earned cup of coffee!
0 0
- git ssh eclipse使用记录
- 使用eclipse生成git的ssh
- 天天记录 - Eclipse Git插件Egit简单使用
- git使用ssh密钥
- git使用ssh密钥
- git使用ssh密钥
- git使用ssh密钥
- git使用ssh密钥
- git使用ssh密钥
- git使用ssh密钥
- git 使用ssh公钥
- git使用ssh密钥
- git使用ssh密钥
- git使用ssh密钥
- git push 使用ssh
- git学习-使用ssh
- Git使用SSH Key
- git使用ssh
- 安装 youcompleteme 插件
- Atmega的TWI通信,包含模拟IIC,硬件查询方式,以及硬件方式收发程序
- C++客户端访问WebService
- 分布式服务框架 Zookeeper -- 管理分布式环境中的数据
- mysql数据库增删改查示例
- git ssh eclipse使用记录
- 压缩图片
- 聊一聊:相机篇1基本成像原理
- 原 apps被拒绝的各种理由以及翻译
- Android之附加图片2—— 从系统图库中选择图片
- 每日一linux命令(1):sort命令
- 思想总结与爱心劝募
- ios证书 配置文件 沙盒保护 代码签名
- 数据结构—利用单链表操作城市信息