I’m new to git and am not sure this will work but wonder if someone has done this and can help me.
I have uploaded all my userfiles (.zsh*, .bash*, etc.) to my git remote repository thinking that I could setup git or copy my git setup from my original computer and then when I get to the new computer to setup a user there, I could git fetch the files to the new computer and I would have both computer users look the same and work (that’s the key)! LOL
Can I copy the .gitconfig, .git/ and /etc/gitconfig files to another computer and just fetch the remote files to my computer? within the .gitconfig file I changed the /Users/joe/… to ~/… That seems to work just fine on the original computer but not on the new computer.
Ultimately I want to tar up a few files (including the git setup/config files), copy that tarball to the new computer, extract the files into the home directory and then do a git fetch to bring the local files into sync with the github repository. Hope I explained this well enough.
Can anyone point me in the right direction?
Thanks in advance for your help.