Below you will find pages that have the tag “git”
Using Multiple SSH Keys with Github
via http://www.freshblurbs.com/blog/2013/06/22/github-multiple-ssh-keys.html#tldr
Moving files between git repositories, preserving history
I needed to copy a directory between two git
repositories while preserving its history. I found some good instructions at http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/, which got me started, but I figured out a way to avoid having to move all the files into their directory again (lines 5-6 in Greg’s instructions) by reversing the filter to remove everything I don’t want instead of only including the directory I want. Here are the steps (the idea is the same as in Greg’s post, so please read that to get the explanation, I’m only listing the commands here for reference):
Three levels of GIT config
via http://www.codinginahurry.com/2011/02/05/three-levels-of-git-config/
git
config; project, global and system.-
-
- project: Project configs are only available for the current project and stored in
.git/config
in the project's directory. - global: Global configs are available for all projects for the current user and stored in
~/.gitconfig
. - system: System configs are available for all the users/projects and stored in
/etc/gitconfig
.
- project: Project configs are only available for the current project and stored in
-
git config user.name "John Doe"
git config --global user.name "John Doe"
git config --system user.name "John Doe"