Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Latest commit

 

History

History
79 lines (54 loc) · 2.1 KB

File metadata and controls

79 lines (54 loc) · 2.1 KB

Github Rules

This document is writtend by 2022-04-01.

Branch List

name purpose
main Deploy to netlify
develop Develop or Fix system
test Testing new modules

Git Commands

Check out, these Git Commands

  1. Branches
  2. Naming

Tags

git tag // check all tags

git tag "tag_name" // tagging on HEAD in local
git push --tags // push all tags from local to origin repo

git tag -d "tag_name" // delete tag by tag_name in local
git push origin --delete "tag_name" // delete tag by tag_name in origin

Branches

// Check commit and branch

git branch // check branch, using now.
git branch -r // check branch, using in repo now.
git branch -v // check last commit message in branch, using now.

// Create and Delete branch in loacl and repo

git branch branch_name // create branch
git branch -d branch_name // delete branch
git branch -D branch_anem // delete brnach with forced,

git push origin --delete branch_name // delete branch in repo

git push origin -u origin branch_name // push branch data to repo

// Using branch

git switch branch_name // switch branch

// Restore

git restore // Restore unstaged files
git restore --staged // Resotre staged files

// Merge : "git merge" foward to HEAD, so, first you checkout HEAD

git checkout main
git merge branch_name
git branch -d branch_name
git push origin branch_name

Merge Seperated Branches

Naming

Commit Detailes
TEST Test branches or etc ...
INITIAL Initial settings
MARKDOWN ADD,DEL,FIX ADD~FIX MARKDOWN
ADD function Typed detials about function with updated date
DEL function Typed detials about function with updated date
FIX function Typed detials about function with updated date
Ver.1.0.0 Version means release version for netlify