Code Monkey home page Code Monkey logo

gitflow-training's Introduction

Git and git flow trainning

GIT

git init 
echo "Hello World" > test.txt
git add test.txt
git commit -m 'First commit
echo "How are you?" >> test.txt
git add test.txt
git commit -m 'Second commit'
git checkout master^ # change to removed last commit branch
git log
git diff master
git checkout master
git branch nova-branch
git checkout nova-branch
echo "I'm fine" >> test.txt
git add test.txt
git commit -m 'Third commit'
git checkout master
echo 'Hello World 2' > test2.txt 
git add test2.txt
git commit -m 'Fourth commit'
git merge nova-branch
git log --graph

GIT FLOW

brew install git-flow # if no install git flow
git flow init 
# if have problems create a branch develo before.
git flow feature start recurso-milionario
echo 'Este é o melhor recurso criado desde sempre!' > recurso.txt
git add recurso.txt
git commit -m 'Finished feature'
git flow feature finish recurso-milionario
git log
git branch 

git flow release start 0.1.0
# change content
echo 'Este talvez seja o melhor recurso criado desde sempre!' > recurso.txt
git add recurso.txt
git commit -m 'Little bug-fix in feature'

git flow hotfix start 0.1.1
echo 'Este talvez não seja o melhor recurso criado desde sempre! Mas é um dos mais legais!' > recurso.txt
git add recurso.txt
git commit -m 'Little hotfix in a feature'
git flow hotfix finish 0.1.1

gitflow-training's People

Stargazers

 avatar

Watchers

 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.