---
title: "git使用"
author: "gkbusy"
date: "2014-03-25T22:24:04Z"
tags: []
categories: ["开源软件"]
slug: "git"
draft: false
lastmod: "2014-03-25T22:24:04Z"
id: 2036664
url: "https://gkbusy.iteye.com/blog/2036664"
---

通过https的方式获取的代码

 

```
git clone https://gkbusyiteye.com/gkbusy/studypython
```

 

 

结果发现无法执行如下指令：

 

```
git push origin master
```

 

 

但是ssh key里已经添加了本机的ssh key，查了一下网站上说需要用git的ssh方式来获取代码才可以直接push上去，好吧，用如下指令做了一下切换：

 

```
git remote set-url origin git@github.com:studypython/studypytho.git
```