Yeap,現在你已經把你的代碼放在版本控制下。
我強烈建議,如果你是新的到Git,藉此快速詛咒學習的Git - >Got 15 minutes and want to learn Git?
如果你提交到Github上,你可以設置你的configs
$ git config --global user.name "Your Name" # Set your Git name
$ git config --global user.email [email protected] # Set your Git email
設置你的代碼在版本連軋
$ git init # Set up Git on your project
$ git status # See tracked, untracked, and staged files
$ git add . # Add new files to Git
$ git commit -am "Initial commit" # Save your project files to Git
Commi t to GitHub
$ git remote add origin [email protected]:yourusername/yours.git # Set up git to push to your Github repository
$ git push -u origin master # Push your code to Github (sets the upstream the first time)
$ git push # Push your code to Github
看起來不錯。檢查這個答案:http://stackoverflow.com/questions/7632454/how-to-use-git-bare-init-repository – ppaulojr