Git oneliners

How to check fatal: CRLF would be replaced by LF

    git config --global core.autocrlf false  
    git config --global core.safecrlf false

How to get remote url

    git remote show origin

How to add ignoring

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

How to add excludes

    vim .git/info/exclude

How to fix git error no refs

No refs in common and none specified; doing nothing. Perhaps you should specify a branch such as 'master'.

how to fix:

  git push origin master

how to debug ssh git repo

ssh -vT git@git

git new feature workflow

git clone git@git:cookbooks/swift.git
git branch feature/swift_undelete
git checkout feature/swift_undelete
vim proxy-server.conf.erb
git add proxy-server.conf.erb
git commit -m 'adding swift_undelete middleware'
git push -u origin feature/swift_undelete###

Using a git submodules

git clone 
git subtree add --prefix images/docker-backup https://github.com/kevit/docker-backup master --squash

More on Atlassian