cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference














.

middleware:version-control:git:basic-deploy.html



Git - How to use Git.

Basic Deploy with Git

Introduction

How to create Git Repository with Development Environment

Environment : Linux

$ git --version

Check .gitignore file

This example is CodeIgniter's .gitignore file.

$ ls -l .gitignore 
-rw-r--r-- 1 root root 504 Jun 19 17:33 .gitignore
$
$ cat .gitignore 
.DS_Store

application/cache/*
!application/cache/index.html
!application/cache/.htaccess

application/logs/*
!application/logs/index.html
!application/logs/.htaccess

composer.lock

user_guide_src/build/*
user_guide_src/cilexer/build/*
user_guide_src/cilexer/dist/*
user_guide_src/cilexer/pycilexer.egg-info/*
/vendor/

# IDE Files
#-------------------------
/nbproject/
.idea/*

## Sublime Text cache files
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache
*.sublime-workspace
*.sublime-project
$ git init
$ git remote add origin https://USER:PASS@example.com/repository/example.git
$ git add .
$ git commit -m "First Commit"
$ git push -u origin master


How to deploy from Git Repository to Production

Environment : Linux

$ git init
$ git remote add origin https://USER:PASS@example.com/repository/example.git
$ git pull origin master


How to edit files with Develop Environment




middleware/version-control/git/basic-deploy.html.txt ยท Last modified: 2018/04/22 by admin

Page Tools