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
2014/05/26
Git init to existing folder
No Comments »
No comments yet.
RSS feed for comments on this post. TrackBack URL