git hib code example

Example 1: github

in case of emergancy:
1) git commit
2) git push 
3) run away ...

Example 2: github

a man of software I see

Example 3: github

git checkout master 
git checkout master
git pull origin master

Adding New Features
git checkout -b my_branch_name
git add .
git commit -am "Initial commit"
git branch
git push -u origin new_branch_name

Example 4: github

//cancel commits
git reset HEAD^
//cancel last 3 commits
git reset HEAD~3

//when first commit
git push -u origin master

//remove remote origin
git remote remove origin

//reset remote origin
git remote add origin https://github.com/yourname/project.git

git init
//add all
git add .

//cancel adds
git reset

Example 5: git flow

$ git flow init

Initialized empty Git repository in ~/project/.git/
No branches exist yet. Base branches must be created now.
Branch name for production releases: [master]
Branch name for "next release" development: [develop]
How to name your supporting branch prefixes?
Feature branches? [feature/]
Release branches? [release/]
Hotfix branches? [hotfix/]
Support branches? [support/]
Version tag prefix? []

$ git branch

* develop
 master

Tags:

Html Example