Giter Club home page Giter Club logo

git-for-sae's Introduction

git-for-SAE

本工具的作用只是把git管理的项目内容自动部署到SAE的svn服务器上,仅此而已。只是单纯不太喜欢搞svn。

#Features

  • 一个脚本搞定将git项目部署到SAE的svn服务器上
  • 自动将缓存文件夹.svn加入.gitignore

#Setup 第一步,将本项目clone到本地并checkout到release分支,这么做的话你在想要更新到最新版本时可以随时获得更新。或者你直接下载zip包。假设你将项目放到了如/Users/Jerry/Dev/git-for-SAE/这样的路径下。

第二步,将以下内容添加到~/.bash_profile

# Git for SAE
export GIT_FOR_SAE_ROOT=/Users/Jerry/Dev/git-for-SAE/ #此处就是你刚刚放置clone下来的项目路径
export PATH=$GIT_FOR_SAE_ROOT:$PATH

第三步,应用新的.bash_profile

Terminal$ source ~/.bash_profile

#How to use 如果svn服务器是: https://svn.sinaapp.com/sjtubus/,那么下面的第一个参数请填写: sjtubus 如果通过上面那种方式安装好后,你可以进入你自己项目的根目录,接着这样使用:

#部署
#第一个参数是SAE上的项目名
#第二个数字表示版本号,SAE支持1-10
Terminal$ sae-push.sh sjtubus 1

#清空本地svn缓存
Terminal$ sae-clean.sh

#Attention

  • 虽然理论上本脚本也可以使用于未在git版本管理下的项目,但最好不要那么干,防治丢失重要信息。
  • 本脚本比较适用于规模不大的项目。

#Projects

#Feedback

#Issues

  • 暂不支持在svn:ignore中导入.gitignore,即此提交方法暂时无法忽略文件

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.