---
title: "git仓库创建"
author: "scholltop"
date: "2020-09-04T15:33:44Z"
tags: []
categories: ["行业应用"]
slug: "git"
draft: false
lastmod: "2020-09-04T15:33:44Z"
id: 2516611
url: "https://schooltop.iteye.com/blog/2516611"
---

推送现有文件夹
cd existing_folder
git init
git remote add origin git@ip:/home/git/nodeline
git add .
git commit -m "Initial commit"
git push -u origin master


创建项目
git init --bare nodeline
更改权限：
chown git.git -R nodeline