p.s. let's use git@heron.nctucs.net:~/heron-web.git for example.
On Git Server Side
- mkdir heron-web.git
- cd heron-web.git/
- git init --bare
In My Local Code Directory
- cd <path-to-the-code>
- git init
- vim .gitignore
- add files that it's no need to traced
- or just copy from the existing template
- git add -A
- git commit -a -m "init commit"
- git remote add original git@heron.nctucs.net:~/heron-web.git
- git push -u original master
Clone in Other Place
- git clone git@heron.nctucs.net:~/heron-web.git
- cd heron-web
No comments:
Post a Comment