mathz.nu Asterisk Blacklist Hobby webbhotell

2014/05/26

Git init to existing folder

Filed under: Uncategorized — Mathz @ 20:48
cd ~/git/foo
git init
git remote add origin git@<host>:<git repo inkl .git>
git config --global user.name <"Your Name">
git config --global user.email <"Your email">
git config --global push.default simple 
git fetch origin
git branch master origin/master (optional)
git checkout master 
git add -A 
git commit -m 'first commit'
git push --set-upstream origin master 
git push

Powered by WordPress