Git init to existing folder

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

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *