Giter Club home page Giter Club logo

cicd's Introduction

CI CD

git cmd

  • git add
  • git commit -m ""
  • git push
  • git remote add origin [email protected]:----/repoName.git
  • git remote remove origin
  • git rm -r --cached node_modules

.gitignore 规则不生效

gitignore只能忽略那些原来没被track的文件,如果某些文件已经被纳入了版本管理中,则修改.gitignore是无效的。 解决> 方法就是先把本地缓存删除(改变成未track状态),然后再提交:

  • git rm -r --cached node_modules

  • git add .

  • git commit -m "update .gitignore"

  • -r 是为了recursive purpose

git tag

  • git tag -a -m "first release - use with caution" v0.1-beta
  • git push origin v0.1-beta
  • git tag
  • git branch
  • git checkout
  • git chceckout
  • git checkout -b
  • git branch -D
  • git log --oneline
  • git merge feature-1

merge feature-1 branch to main branch

  1. Main as a receiving branch, user need checkout main
  2. feature-1 branch will merge into main

git stash

  • git stash save -m "save msg"

    Stash all uncommitted work

  • git stash apply stash{n}
  • git stash pop
  • git stash drop stash{n}
  • git stash list
  • git stash clear

git merge

merge feature-1 to branch main

  • git checkout -b main
  • git merge feature-1

git rebase

  • git pull -rebase
  • git rebase --onto master server client

    find the common parent of server and client then merge it back to master branch

  • git checkout master
  • git merge client

cicd's People

Watchers

Hardison avatar  avatar

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.