Skip to content

Instantly share code, notes, and snippets.

@nivir
nivir / .gitconfig
Last active September 14, 2015 07:47 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
@nivir
nivir / Global.sublime-settings
Created October 23, 2015 00:27 — forked from benatkin/Global.sublime-settings
excluding node_modules from Sublime Text 2
// Place user-specific overrides in this file, to ensure they're preserved
// when upgrading
{
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "node_modules"]
}
@nivir
nivir / .gitconfig
Created November 16, 2015 13:39 — forked from rab/.gitconfig
A good starting point for ~/.gitconfig
# -*- Conf -*-
[color]
branch = auto
diff = auto
status = auto
showbranch = auto
ui = true
# color.branch
# A boolean to enable/disable color in the output of git-branch(1). May be set to always, false (or
@nivir
nivir / .gitconfig
Created November 16, 2015 22:25 — forked from eculver/.gitconfig
Sample .gitconfig
[user]
name = Joe User
email = [email protected]
[branch]
autosetupmerge = true
[branch "master"]
remote = origin
merge = refs/heads/master
@nivir
nivir / README.md
Created November 17, 2015 08:08 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@nivir
nivir / Git push error
Created November 22, 2015 17:09
Git push error
git push -u origin master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 336 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
Notifying Redmine about changes to this repository : 'inventopy/inventopy_src' ...
- Error while notifying Redmine ! (status code: 301)
git push -u origin master
To ssh://[email protected]_server_location.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'ssh://git@server_location/inventopy_src.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
git pull
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
From ssh://project_location
* [new branch] master -> origin/master
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details
git clone ssh://[email protected]/project_name/repository.git
Cloning into 'inventopy_src'...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The RSA host key for server_location has changed,
and the key for the corresponding IP address 46.101.128.148
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
server.gaddeagroup.com,146.185.172.6 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8JBN1GY0lObADO4tRBxJugw4bL/hP6jxyU+C6MNJnpUXmlhnJee8XWu3KA9ZfDEPHOkXOrifaQlnenVS/ACdGjOUs79Eh4DSXiQdzu+urznU21bGzbihBIGxCTwMfHp7vZGA7U3Iew+4rXpCvDFt1iea0CQGgbK3vxEgBxovVT5Ze5u4QpUVLzCfGC/jQ9Ahzom2Ed/s0XLJzQF28qRptv51GOslGpbFCcVd/bHVCIlHD4OoMMkeyZG1UOu+r1Fg7LoVMRxoWRDqggow+5kZ4b4nug9H+kVDus/o4m5Cip4BxlnZRrgHJ8opyPorW+HzWDQ8wt5i6L28SZFQdgkSr