2011年6月8日 星期三

Git Newbie command

Global setup:

Download and install Git
  git config --global user.name "Your Name"
  git config --global user.email losehole@gmail.com
        

Next steps:

mkdir test
  cd test
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin git@github.com:YOURNAME/test.git
  git push -u origin master
      

Existing Git Repo?

cd existing_git_repo
  git remote add origin git@github.com:YOURNAME/test.git
  git push -u origin master
      

Add and Commit your new file

    git add NEWFILENAME
git commit -m 'NEW commit'  
    git push -u origin master

0 意見:

張貼留言

 
創用 CC 授權條款