Pacific-Design.com

    
Home Index

1. Git

+ Automate

+ Changes

+ GitBucket

+ Git Flow

+ Git Server

+ Git Update

+ Markup

+ Pull Ignore Local

+ Rollback

+ Update All Repos

+ gitignore

+ vimdiff

Git /

Create new branch on local machine

$ git checkout -b [new_branch]

Create new branch on local machine

$ git branch -d [branch_name]
$ git branch -D [branch_name]

Create new branch on local machine

$ git push origin [branch_name]

Change working branch

$ git checkout [branch_name]

Push the branch on github

$ git push origin [branch_name]

Display all branches

$ git branch --all
$ git branch

Git Ignore Global

$ git config --global core.excludesfile ~/.gitignore_global

Untrack files already added to Git

$ git rm --cached FILENAME

Recusively delete all git directories

$ find . -name ".git" -type d -exec rm -rf "{}" \;

References: