Skip to content

Instantly share code, notes, and snippets.

View saninmersion's full-sized avatar

Sandip Shrestha saninmersion

View GitHub Profile
@saninmersion
saninmersion / gitflow-breakdown.md
Created April 2, 2019 08:16 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@saninmersion
saninmersion / git-commands.md
Created July 5, 2018 04:20 — forked from puncoz/git-commands.md
Useful git commands

Useful git commands

Get local branch count

git branch | wc -l

Delete all merged branch from local

git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d

Update only date time of last commit

git commit --amend --date="$(date -R)" This will trigger a 'git commit --amend' action